WordPress at Your Fingertips
action is not described

rest_after_save_widget action-hook . WP 5.8.0

Fires after a widget is created or updated via the REST API.

Usage

add_action( 'rest_after_save_widget', 'action_function_name_6724', 10, 4 );
function action_function_name_6724( $id, $sidebar_id, $request, $creating ){
	// action...
}
$id(string)
ID of the widget being saved.
$sidebar_id(string)
ID of the sidebar containing the widget being saved.
$request(WP_REST_Request)
Request object.
$creating(true|false)
True when creating a widget, false when updating.

Changelog

Since 5.8.0 Introduced.

Where the hook is called

WP_REST_Widgets_Controller::save_widget()
rest_after_save_widget
wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php 582
do_action( 'rest_after_save_widget', $id, $sidebar_id, $request, $creating );

Where in WP core the hook is used WordPress

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