wphooks.info - wp_unregister_sidebar_widget

wp_unregister_sidebar_widget

(trunk - 5.1-alpha-44286)

The hook occurs in the following file:

wp-includes/widgets.php:
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
 */
function wp_unregister_sidebar_widget( $id ) {

	/**
	 * Fires just before a widget is removed from a sidebar.
	 *
	 * @since 3.0.0
	 *
	 * @param int $id The widget ID.
	 */
	do_action( 'wp_unregister_sidebar_widget', $id );

	wp_register_sidebar_widget( $id, '', '' );
	wp_unregister_widget_control( $id );
}

/**
 * Registers widget control callback for customizing options.
 *
 * @since 2.2.0