WordPress REST API – Custom field not added to pages
You may need to flush the REST API cache in order to see the added field. You can do this by adding the following code to your plugin: This code will flush the REST API cache whenever a post (including a page) is saved or updated, so that the changes to the registered field will … Read more