-
Notifications
You must be signed in to change notification settings - Fork 76
Clarify shortcomings of register_meta #211
Comments
Also I think that should be explained if is wrong or right to use register_meta() instead of register_rest_field() when the meta field is intended to be used only with one or some custom posts (or taxonomies). |
I've added this section to the Modifying Responses guide in the handbook: I'm going to mark this as resolved with this addition, we can re-open if further clarification is needed. Using
|
This matches the change made in WP-API/docs-v2#211 to the live site.
https://developer.wordpress.org/rest-api/extending-the-rest-api/modifying-responses/ does not go into detail about the way register_meta( 'post'... will apply to all post-derived objects. This is an omission brought up in weekly chat that we should address
The text was updated successfully, but these errors were encountered: