How to Get Featured Image from REST API?
I used Better REST API Featured Image plugin. that adds the featured image URL to the original API response.
I used Better REST API Featured Image plugin. that adds the featured image URL to the original API response.
Custom Post Type not showing in Rest API on Multisite
How does one perform a sub query with different post types
In case someone encounters this exact problem in the future: I found the error to be related to the external api not being properly configured to handle a request to a secure endpoint. Since my site on WPEngine is secure (https), IIS needs to be configured to handle TLS1.2, which is wasn’t (start here for … Read more
Take a look at some of WordPress’s Actions & Filters – in particular, you might want something like publish_post: function my_custom_post_action( $post_id, $post ) { // Send out data to your service using something // like wp_remote_request: // https://codex.wordpress.org/Function_Reference/wp_remote_post } add_action( ‘publish_post’, ‘my_custom_post_action’, 10, 2 ); You may need to ensure that the post is … Read more
am_ is correct, rest API categories has hide_empty default to true. change your request to the following: /wp-json/wc/v3/products/categories?hide_empty=false Source
Callback to custom field is not working in WordPress REST API
This is the expected behaviour. When you register routes with the REST API you’re registering them for the current request. This is the standard pattern for WordPress. It’s the same behaviour with register_post_type(), register_taxonomy(), register_setting(), register_nav_menu(), register_widget() and so on. Actions and filters registered with add_action() and add_filter() are also registered — and fire — … Read more
How to prepare WordPress Rest data for Preview Changes?
Setting/unsetting terms using the Backbone JavaScript client