rest_prepare_widget – filter

Filters the REST API response for a widget. 

Parameters

.
( 5.8.0 ) . .
$response
( WP_REST_Response|WP_Error ) The response object, or WP_Error object on failure. . . .
( array ) $widget The registered widget data. . . .
( WP_REST_Request ) $request Request used to generate the response. . . .
API Letters: ,,

Implementers