apply_filters( 'wp_rest_server_class', string $class_name )

Filters the REST Server Class.


Description

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


Parameters

$class_name

(string) The name of the server class. Default 'WP_REST_Server'.


Source

File: wp-includes/rest-api.php

View on GitHub



Changelog

Changelog
Version Description
WP-4.4.0 Introduced.