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

Make wp-rest-jsonapi-serializer more WordPress idiomatic #3

Open
taras opened this issue Aug 30, 2016 · 1 comment
Open

Make wp-rest-jsonapi-serializer more WordPress idiomatic #3

taras opened this issue Aug 30, 2016 · 1 comment

Comments

@taras
Copy link
Member

taras commented Aug 30, 2016

Let's continue the conversation from oskarrough/ember-wordpress#23 in this issue.

Here is some recommended reading to further this conversation http://v2.wp-api.org/extending/modifying/ and https://make.wordpress.org/core/2016/05/03/a-data-schema-for-meta/

@daltonrooney
Copy link

daltonrooney commented Aug 30, 2016

Here's some more up to date information on the register_meta function, which changed a bit in the last WordPress release cycle: https://make.wordpress.org/core/2016/07/20/additional-register_meta-changes-in-4-6/

As far as I can tell, setting show_in_rest as true does not actually add the field to the REST API, it simply makes the field available for registration. You still need to register_rest_field to add a custom field to a post type endpoint.

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

No branches or pull requests

2 participants