Skip to content

Instantly share code, notes, and snippets.

@guillaumemolter
Created November 11, 2015 16:13
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save guillaumemolter/44b8c30579b771ddb63a to your computer and use it in GitHub Desktop.
Save guillaumemolter/44b8c30579b771ddb63a to your computer and use it in GitHub Desktop.
Disable WordPress default routes and endpoints REST API V2 - Correct way
<?php
remove_action( 'rest_api_init', 'create_initial_rest_routes', 0 );
@daviddarke
Copy link

Great help :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment