unregister_sidebar( string|int $sidebar_id )

Removes a sidebar from the list.


Description


Parameters

$sidebar_id

(string|int) (Required) The ID of the sidebar when it was registered.


Top ↑

Source

File: wp-includes/widgets.php

function unregister_sidebar( $sidebar_id ) {
	global $wp_registered_sidebars;

	unset( $wp_registered_sidebars[ $sidebar_id ] );
}

Top ↑

Changelog

Version Description
2.2.0 Introduced.