apply_filters( ‘rest_prepare_sidebar’, WP_REST_Response $response, array $raw_sidebar, WP_REST_Request $request )

In this article

Filters the REST API response for a sidebar.

Parameters

$responseWP_REST_Response
The response object.
$raw_sidebararray
The raw sidebar data.
$requestWP_REST_Request
The request object.

Source

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

Changelog

VersionDescription
5.8.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.