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.


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

	return $class_name;
The name of the server class.
Default: 'WP_REST_Server'

Where the hook is called

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)

Использование не найдено.