wpseek.com
A WordPress-centric search engine for devs and theme authors



rest_prepare_menu_location › WordPress Filter Hooks

Since5.9.0
Deprecatedn/a
apply_filters( 'rest_prepare_menu_location', $response, $location, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (object) $location The original location object.
    Required: Yes
  • (WP_REST_Request) $request Request used to generate the response.
    Required: Yes
Defined at:
Codex:

Filters menu location data returned from the REST API.





Source

return apply_filters( 'rest_prepare_menu_location', $response, $location, $request );