URL endpoint with HTML
I’m using WordPress endpoints to render another template on a post page. How can I add .html to the end of the URL … Read more
I’m using WordPress endpoints to render another template on a post page. How can I add .html to the end of the URL … Read more
I’ve got a custom post type. Let’s call it books. I’m adding a new rewrite endpoint called pages. I want the url /books/pages/2/ … Read more
For example, the original URL would be http://localhost/category/sub_category/. What I want is http://localhost/sub_category/, furthermore, I want to add an endpoint to the URL … Read more
I’ve defined a REST endpoint /my-plugin/v1/post-read to show whether a post has been read or not, per-user. In PHP, my plugin keeps track … Read more
When using wp.data.select(‘core’).getEntityRecords(…), there is a special selector for loading states wp.data.select(‘core/data’).isResolving(…). But what about actual errors — backend validation errors, servers gone … Read more
I am trying to extend the WordPress REST API with an endpoint that takes Zoom webhooks. Zoom requires a response within 3 seconds … Read more
I’m trying to add an endpoint with the following: register_rest_route(‘namespace/v1′,’custom-search/(?P<search>[a-zA-Z\s]+)’, array( ‘methods’ => ‘GET’, ‘callback’ => ‘gm_custom_search_callback’ ) ); It registers the route, … Read more
Is it possible to query the API directly using a tag slug rather than a tag ID? Or do you have to query … Read more
I’m trying to define a new REST Api endpoint based on WP REST API (version 2) and have question relating to what arguments … Read more
I’m trying to create a new endpoint using add_rewrite_endpoint(). Here’s my code: // Add query var. add_filter( ‘query_vars’, function( $vars ) { $vars[] … Read more