apply_filters( 'wp_rest_server_class', string $class_name )

Filters the REST Server Class.

Description Description

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

Parameters Parameters


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

Top ↑

Source Source

File: wp-includes/rest-api.php

View on Trac

Top ↑

Changelog Changelog

Version Description
4.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.