Search
 
SCRIPT & CODE EXAMPLE
 

PHP

turn off wordpress user list exposed

add_filter( 'rest_endpoints', function( $endpoints ){
    if ( isset( $endpoints['/wp/v2/users'] ) ) {
        unset( $endpoints['/wp/v2/users'] );
    }
    if ( isset( $endpoints['/wp/v2/users/(?P<id>[d]+)'] ) ) {
        unset( $endpoints['/wp/v2/users/(?P<id>[d]+)'] );
    }
    return $endpoints;
});
Comment

PREVIOUS NEXT
Code Example
Php :: call variable from inside a collection laravel 
Php :: assign to array array of values php 
Php :: You are *required* to use the date.timezone setting or t 
Php :: php rtrim 
Php :: static function php 
Php :: consumir soap php 
Php :: show sender name laravel 
Php :: assocititive multi array compare php 
Php :: check if config exist laravel 
Php :: php version not update after windows env file 
Php :: php $_session err_miss_cache 
Php :: laravel repository 
Php :: bd sms gateway, laravel sms gateway, sms sending library, bd sms, sms gateway 
Php :: laravel withwhere 
Php :: php check if type is mysqli_result 
Php :: ?: php 
Php :: send data with url in php 
Php :: php read big file line by line 
Php :: add a snippet in twig shopware 6 
Php :: financial year calculation in php 
Php :: Bootstrap paginator css not appearing 
Php :: jsondecode 
Php :: debugbar:clear in laravel 
Php :: CONVERTIR TABLEAU EN CHAINE DE CARACTÈRE PHP 
Php :: difference between array_merge and + 
Php :: confirm popup laravel 
Php :: php print 
Php :: php fetch return false 
Php :: php code add text on existing pdf file 
Php :: laravel vue pagination with search filter 
ADD CONTENT
Topic
Content
Source link
Name
1+6 =