Filter hook 'rest_prepare_menu_location'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php at line 210

Description

Filters menu location data returned from the REST API.

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-menu-locations-controller.php 210

Parameters

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.

PHP Doc

/**
		 * 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.
		 */