wp_unregister_sidebar_widget action-hook . WP 3.0.0
Fires just before a widget is removed from a sidebar.
Usage
add_action( 'wp_unregister_sidebar_widget', 'action_function_name_15' ); function action_function_name_15( $id ){ // action... }
- $id(int)
- The widget ID.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
wp_unregister_sidebar_widget
wp-includes/widgets.php 487
do_action( 'wp_unregister_sidebar_widget', $id );