Last active
July 3, 2021 13:36
-
-
Save mitchellkrogza/29bab50e493a416b1d93b4d4f537954b to your computer and use it in GitHub Desktop.
Disable wp-json User Endpoints for 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
// Set this function to only run on front end ONLY (NOT in Admin side it breaks things) | |
// Use Code Snippets Plugin set to Front end only | |
add_filter( 'rest_user_query', '__return_null' ); | |
add_filter( 'rest_prepare_user', '__return_null' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment