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



rest_api_init › Działania WordPress Hooks

Od4.4.0
Przestarzałyn/a
do_action( 'rest_api_init', $wp_rest_server )
Parametry:
  • (WP_REST_Server) $wp_rest_server Server object.
    Wymagane: Tak
Zdefiniowane na:
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.





Źródło

do_action( 'rest_api_init', $wp_rest_server );