-
Introduce support for Post Meta, Term Meta, User Meta, and Comment Meta in their parent endpoints.
For your meta fields to be exposed in the REST API, you need to register them. WordPress includes a
register_meta()function which is not usually required to get/set fields, but is required for API support.To register your field, simply call register_meta and set the show_in_rest...