Question
I'm trying to use a custom endpoint (basically to get a random sorting working) and am using the following code: // Custom WP API endpoint function theme_enable_random_api() { // create json-api endpoint add_action('rest_api_init', function () { ...
0
, , 1 month 0 Answers 47 views

Question
When you go to /wp-json or /wp-json/[namespace] on an API-enabled WordPress site, it shows all of the API routes and endpoints. How can I disable this behaviour without disabling the REST API?
0
, 3 months 0 Answers 59 views