wpseek.com
Bazujące na WordPress narzędzie wyszukiwania dla deweloperów i twórców motywów.



wp_rest_server_class › Filtr WordPress Hooks

Od4.4.0
Przestarzałyn/a
› apply_filters( 'wp_rest_server_class', 'WP_REST_Server' )
Parametry:
  • () class_name The name of the server class. Default 'WP_REST_Server'.
    Wymagane: Tak
Zdefiniowane na:
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.




Źródło

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