WordPress Developer Ukraine, Kyiv
Extend the WordPress REST API with register_rest_field()

Extend the WordPress REST API with register_rest_field()

Extend the WordPress REST API with register_rest_field() The REST API returns a fixed set of fields for every post: id, title, content, status and so on. Data that a theme or plugin keeps in post meta, in terms or in its own tables is not there. With register_rest_field() you add it to the existing response,…