WordPress Hooks Explorer

Listing all hooks extracted WordPress Core

Details about rest_api_init

Back to home


Filename Hook Type Line Number PHP Doc
wp-includes/rest-api.php do_action 577 /**
* 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.
* @since 4.4.0
* @param WP_REST_Server $wp_rest_server Server object.

Hook Parameters

Parameter Type Name Description
WP_REST_Server $wp_rest_server Server object.