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.
$class_namestring
$wp_rest_server_class = apply_filters( 'wp_rest_server_class', 'WP_REST_Server' );
| Version | Description |
|---|---|
| 4.4.0 | Introduced. |
© 2003–2024 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/wp_rest_server_class