wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



rest_api_init › Les Actions WordPress

Depuis4.4.0
Dépréciéen/a
do_action( 'rest_api_init', $wp_rest_server )
Paramètres:
  • (WP_REST_Server) $wp_rest_server Server object.
    Requis: Oui
Défini(e) dans:
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.





Source

do_action( 'rest_api_init', $wp_rest_server );