do_action( 'rest_save_sidebar', array $sidebar, WP_REST_Request $request )

Fires after a sidebar is updated via the REST API.

Parameters

$sidebar

(array) The updated sidebar.

$request

(WP_REST_Request) Request object.

Source

File: wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php

View on Trac

Changelog

Version Description
5.8.0 Introduced.

© 2003–2021 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/rest_save_sidebar