Last active
May 7, 2017 09:51
-
-
Save mostafasoufi/2a6917e003270ce7f95d36ef704bd463 to your computer and use it in GitHub Desktop.
Disable REST API endpoints in the WordPress
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Removed wordpress rest endpoints | |
remove_action( 'rest_api_init', 'create_initial_rest_routes', 99 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment