A WordPress-centric search engine for devs and theme authors



wp_rest_server_class ›

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 API, using a different class to handle requests.





Source

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