wp_unregister_sidebar_widget

wp_unregister_sidebar_widget

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action

See hook in core

Displaying hooks found in version: wordpress-6.7

do_action('wp_unregister_sidebar_widget') is found 1 times:

  • /wp-includes/widgets.php line 504
    	 * @since 3.0.0
    	 *
    	 * @param int|string $id The widget ID.
    	 */
    	do_action( 'wp_unregister_sidebar_widget', $id );
    
    	wp_register_sidebar_widget( $id, '', '' );
    	wp_unregister_widget_control( $id );
    }
    
    /**