Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Example for rest_endpoints filter in PHP #33738

Open
wants to merge 1 commit into
base: trunk
Choose a base branch
from

Conversation

@amir2mi
Copy link

@amir2mi amir2mi commented Jul 28, 2021

httpMethod is added recently. It can be set to POST, which allows bigger attributes object.
However, before WP 5.5 it does not work and gives 404 error. it will be solved with filtered rest_endpoints and here is that example.
Thanks to @kienstra, who pointed me out here.

Added an example of how to filter rest_endpoints for POST method before v5.5
@github-actions
Copy link

@github-actions github-actions bot commented Jul 28, 2021

👋 Thanks for your first Pull Request and for helping build the future of Gutenberg and WordPress, @amir2mi! In case you missed it, we'd love to have you join us in our Slack community, where we hold regularly weekly meetings open to anyone to coordinate with each other.

If you want to learn more about WordPress development in general, check out the Core Handbook full of helpful information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

1 participant