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/ ...
-
June 2, 2022
- 0 Comments
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 ...
-
June 1, 2022
- 0 Comments
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 ...
-
May 31, 2022
- 0 Comments
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 ...
-
May 31, 2022
- 0 Comments
I am trying to extend the WordPress REST API with an endpoint that takes Zoom webhooks. Zoom requires a response within 3 seconds ...
-
May 31, 2022
- 0 Comments
I’m trying to add an endpoint with the following: register_rest_route('namespace/v1','custom-search/(?P<search>...
Is it possible to query the API directly using a tag slug rather than a tag ID? Or do you have to query ...
-
May 28, 2022
- 0 Comments
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...