Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ```php
- add_filter('rest_endpoints', function($endpoints) {
- if ( isset( $endpoints['/wp/v2/users'] ) ) {
- unset( $endpoints['/wp/v2/users'] );
- }
- return $endpoints;
- });
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement