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.


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


Since 5.8.0 Introduced.

Where the hook is called

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 );