Filters the REST Server Class.
Description
This filter allows you to adjust the server class used by the REST API, using a different class to handle requests.
Parameters
-
$class_namestring -
The name of the server class. Default ‘ WP_REST_Server ‘.
Source
$wp_rest_server_class = apply_filters( 'wp_rest_server_class', 'WP_REST_Server' );
Changuelog
| Versionen | Description |
|---|---|
| 4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.