Filter hook 'wp_rest_server_class'

in WP Core File wp-includes/rest-api.php at line 576

Description

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

Occurrences

Filename Line Number
wp-includes/rest-api.php 576

Parameters

Type Name Description
string $class_name The name of the server class. Default 'WP_REST_Server'.

PHP Doc

/**
		 * Filters the REST Server Class.
		 *
		 * This filter allows you to adjust the server class used by the REST API, using a
		 * different class to handle requests.
		 *
		 * @since 4.4.0
		 *
		 * @param string $class_name The name of the server class. Default 'WP_REST_Server'.
		 */