wpseek.com
Eine auf WordPress spezialiserte Suchmaschine für Entwickler und Theme-Autoren



rest_api_init › WordPress Action Hooks

Seit4.4.0
Veraltetn/v
do_action( 'rest_api_init', $wp_rest_server )
Parameter:
  • (WP_REST_Server) $wp_rest_server Server object.
    Erforderlich: Ja
Definiert in:
Codex:

Fires when preparing to serve a REST API request.

Endpoint objects should be created and register their hooks on this action rather than another action to ensure they're only loaded when needed.





Quellcode

do_action( 'rest_api_init', $wp_rest_server );