Extending wp JavaScript base class to make a post request to a custom REST endpoint
Extending wp JavaScript base class to make a post request to a custom REST endpoint
Extending wp JavaScript base class to make a post request to a custom REST endpoint
Not all featured image sizes available in Rest API
I’m facing the same problem with a Multisite running Wordfence and JWT. I’m not sure if the solution here works for your case… The following doesn’t work, it gives a 404 response. If we remove data.author it works without problem. jQuery.ajax({ url: ‘https://example.com/wp-json/wp/v2/posts’, method: ‘POST’, crossDomain: true, dataType: ‘json’, data: { ‘author’:’1′, ‘title’:’Hello world’, ‘content’:’lorem … Read more
Get templated page/post content via the WordPress API
Create Session with JWT
How to insert Comment metadata via REST API
WordPress API returns empty page when page is less than X-WP-TotalPages
Limit REST API output to current logged in user that is also author of the content
You should use register_meta to add the meta field to the rest controller. Here the example from the link to expose the field my_meta of the custom post type my_article: register_meta(‘post’, ‘my_meta’, [ ‘object_subtype’ => ‘my_article’, ‘show_in_rest’ => true ]);
How to filter Post using Meta Data REST API