Filters the REST Server Class.
$class_namestringwp-includes/rest-api.php:632rest_get_server() * different class to handle requests. * * @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 ratherIntroduced in 4.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.