Fires after a widget is created or updated via the REST API.
$idstring$sidebar_idstring$requestWP_REST_Request$creatingboolwp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php:654WP_REST_Widgets_Controller::save_widget() * * @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. */ do_action( 'rest_after_save_widget', $id, $sidebar_id, $request, $creating ); return $id; } /** * Prepares the widget for the REST response.Introduced in 5.8.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.