wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi



rest_api_init › WordPress Action Hooks

Da4.4.0
Deprecaton/a
› do_action( 'rest_api_init', $wp_rest_server )
Parametri:
  • () wp_rest_server Server object.
    Richiesto: Sì
Definito a:
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.




Sorgenti

do_action( 'rest_api_init', $wp_rest_server );