- By default it is possible to call the route `{domain}/wp-json/wp/v2/users` and also `{domain}/wp-json/wp/v2/users/1`
- This is a security issue because of shown login usernames.
- // Disable /users rest routes
- add_filter('rest_endpoints', function( $endpoints ) {
- }
- }
- return $endpoints;
- });
Recent Pastes