unregister_sidebar( string|int $sidebar_id )

Removes a sidebar from the list.


Parameters

$sidebar_id

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


Source

File: wp-includes/widgets.php

function unregister_sidebar( $sidebar_id ) {
	global $wp_registered_sidebars;

	unset( $wp_registered_sidebars[ $sidebar_id ] );
}

Changelog

Changelog
Version Description
WP-2.2.0 Introduced.