WordPress at Your Fingertips
action is not described

rest_save_sidebar action-hook . WP 5.8.0

Fires after a sidebar is updated via the REST API.

Usage

add_action( 'rest_save_sidebar', 'action_function_name_9128', 10, 2 );
function action_function_name_9128( $sidebar, $request ){
	// action...
}
$sidebar(array)
The updated sidebar.
$request(WP_REST_Request)
Request object.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

WP_REST_Sidebars_Controller::update_item()
rest_save_sidebar
wp-includes/rest-api/endpoints/class-wp-rest-sidebars-controller.php 206
do_action( 'rest_save_sidebar', $sidebar, $request );

Where in WP core the hook is used WordPress

wp-includes/default-filters.php 264
add_action( $action, '_delete_option_fresh_site', 0 );