wp_rest_server_class

wp_rest_server_class

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.1

apply_filters('wp_rest_server_class') is found 1 times:

  • /wp-includes/rest-api.php line 605
    		 * @since 4.4.0
    		 *
    		 * @param string $class_name The name of the server class. Default 'WP_REST_Server'.
    		 */
    		$wp_rest_server_class = apply_filters( 'wp_rest_server_class', 'WP_REST_Server' );
    		$wp_rest_server       = new $wp_rest_server_class();
    
    		/**
    		 * Fires when preparing to serve a REST API request.
    		 *
    		 * Endpoint objects should be created and register their hooks on this action rather
    

See this hook used in plugins: