Action hook 'rest_after_save_widget'

in WP Core File wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php at line 649

Description

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

Occurrences

Filename Line Number
wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php 649

Parameters

Type Name Description
string $id ID of the widget being saved.
string $sidebar_id ID of the sidebar containing the widget being saved.
WP_REST_Request $request Request object.
bool $creating True when creating a widget, false when updating.

PHP Doc

/**
		 * Fires after a widget is created or updated via the REST API.
		 *
		 * @since 5.8.0
		 *
		 * @param string          $id         ID of the widget being saved.
		 * @param string          $sidebar_id ID of the sidebar containing the widget being saved.
		 * @param WP_REST_Request $request    Request object.
		 * @param bool            $creating   True when creating a widget, false when updating.
		 */