Last active
November 11, 2015 16:10
-
-
Save guillaumemolter/53c9a6fb8610beec19a5 to your computer and use it in GitHub Desktop.
Disable WordPress default routes and endpoints REST API V1
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 | |
function remove_wp_endpoints($default_routes){ | |
$new_routes["/"] = $default_routes["/"]; | |
return $new_routes; | |
} | |
add_filter('json_endpoints', 'remove_wp_endpoints', 20, 3); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment