wp_unregister_sidebar_widget action-hookWP 3.0.0

Fires just before a widget is removed from a sidebar.

Usage

add_action( 'wp_unregister_sidebar_widget', 'wp_kama_unregister_sidebar_widget_action' );

/**
 * Function for `wp_unregister_sidebar_widget` action-hook.
 * 
 * @param int|string $id The widget ID.
 *
 * @return void
 */
function wp_kama_unregister_sidebar_widget_action( $id ){

	// action...
}
$id(int|string)
The widget ID.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

wp_unregister_sidebar_widget()
wp_unregister_sidebar_widget
wp-includes/widgets.php 494
do_action( 'wp_unregister_sidebar_widget', $id );

Where the hook is used in WordPress

Usage not found.