WordPress at a glance
filter is not described

wp_rest_server_class filter-hook . WP 4.4.0

Filters the REST Server Class.

This filter allows you to adjust the server class used by the API, using a different class to handle requests.

Usage

add_filter( 'wp_rest_server_class', 'filter_function_name_6321' );
function filter_function_name_6321( $class_name ){
	// filter...

	return $class_name;
}
$class_name(string)
The name of the server class.
Default: 'WP_REST_Server'

Changelog

Since 4.4.0 Introduced.

Where the hook is called

rest_get_server()
wp_rest_server_class
wp-includes/rest-api.php 462
$wp_rest_server_class = apply_filters( 'wp_rest_server_class', 'WP_REST_Server' );

Where the hook is used (in WP core)

Usage not found!