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



rest_prepare_sidebar › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
apply_filters( 'rest_prepare_sidebar', $response, $raw_sidebar, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (array) $raw_sidebar The raw sidebar data.
    Required: Yes
  • (WP_REST_Request) $request The request object.
    Required: Yes
Defined at:
Codex:

Filters the REST API response for a sidebar.





Source

return apply_filters( 'rest_prepare_sidebar', $response, $raw_sidebar, $request );