WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_prepare_menu_location

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php apply_filters 209 /**
* Filters menu location data returned from the REST API.
*
* @since 5.9.0
*
* @param WP_REST_Response $response The response object.
* @param object $location The original location object.
* @param WP_REST_Request $request Request used to generate the response.
*/

Hook Parameters

Parameter Type Name Description
WP_REST_Response $response The response object.
object $location The original location object.
WP_REST_Request $request Request used to generate the response.