wp_rest_server_class

SummerySummery

Filters the REST Server Class.

Syntax

apply_filters( 'wp_rest_server_class', string $class_name )

DescriptionDescription

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

ParametersParameters

$class_name

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

SourceSource

File: wp-includes/rest-api.php

ChangelogChangelog

Changelog
Version Description
4.4.0 Introduced.
Scroll to Top