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



rest_prepare_widget › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
apply_filters( 'rest_prepare_widget', $response, $widget, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (array) $widget The registered widget data.
    Required: Yes
  • (WP_REST_Request) $request Request used to generate the response.
    Required: Yes
Defined at:
Codex:

Filters the REST API response for a widget.





Source

return apply_filters( 'rest_prepare_widget', $response, $widget, $request );