WordPress at a glance

unregister_sidebar() WP 1.0

Removes a sidebar from the list.

  • Global. Array. $wp_registered_sidebars Stores the new sidebar in this array by sidebar ID.

No Hooks.

Return

Nothing (null).

Usage

unregister_sidebar( $sidebar_id );
$sidebar_id(string/int) (required)
The ID of the sidebar when it was registered.

Code of unregister_sidebar: wp-includes/widgets.php VER 5.0.1

<?php
function unregister_sidebar( $sidebar_id ) {
	global $wp_registered_sidebars;

	unset( $wp_registered_sidebars[ $sidebar_id ] );
}

Related Functions

From tag: Sidebar (widgets)

No comments
    Hello, !     Log In . Register