wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_rest_server_class › WordPress Filter Hooks

Since4.4.0
Deprecatedn/a
apply_filters( 'wp_rest_server_class', 'WP_REST_Server' )
Parameters:
  • (string) $class_name The name of the server class. Default 'WP_REST_Server'.
    Required: Yes
Defined at:
Codex:

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.





Source

$wp_rest_server_class = apply_filters( 'wp_rest_server_class', 'WP_REST_Server' );