wp_rest_server_class

Advertisement

Summery Summery

Filters the REST Server Class.

Syntax Syntax

apply_filters( 'wp_rest_server_class', string $class_name )

Description Description

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

Parameters Parameters

$class_name

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

Source Source

File: wp-includes/rest-api.php

Advertisement

Changelog Changelog

Changelog
Version Description
4.4.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.