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



rest_prepare_widget_type › WordPress Filter Hooks

Since5.8.0
Deprecatedn/a
apply_filters( 'rest_prepare_widget_type', $response, $widget_type, $request )
Parameters: (3)
  • (WP_REST_Response) $response The response object.
    Required: Yes
  • (array) $widget_type The array of widget data.
    Required: Yes
  • (WP_REST_Request) $request The request object.
    Required: Yes
Defined at:
Codex:

Filters the REST API response for a widget type.





Source

return apply_filters( 'rest_prepare_widget_type', $response, $widget_type, $request );