WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_after_save_widget

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/rest-api/endpoints/class-wp-rest-widgets-controller.php do_action 649 /**
* 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.
*/

Hook Parameters

Parameter 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.