WP_REST_Users_Controller example

    foreach ( get_taxonomies( array( 'show_in_rest' => true ), 'object' ) as $taxonomy ) {
        $controller = $taxonomy->get_rest_controller();

        if ( ! $controller ) {
            continue;
        }

        $controller->register_routes();
    }

    // Users.     $controller = new WP_REST_Users_Controller();
    $controller->register_routes();

    // Application Passwords     $controller = new WP_REST_Application_Passwords_Controller();
    $controller->register_routes();

    // Comments.     $controller = new WP_REST_Comments_Controller();
    $controller->register_routes();

    $search_handlers = array(
        
Home | Imprint | This part of the site doesn't use cookies.