Filters the REST API response for a sidebar.
Parameters
$response
WP_REST_Response- The response object.
$raw_sidebar
array- The raw sidebar data.
$request
WP_REST_Request- The request object.
Source
return apply_filters( 'rest_prepare_sidebar', $response, $raw_sidebar, $request );
Changelog
Version | Description |
---|---|
5.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.