wpseek.com
A WordPress-centric search engine for devs and theme authors



unregister_sidebar › WordPress Function

Since2.2.0
Deprecatedn/a
unregister_sidebar ( $sidebar_id )
Parameters:
  • (string|int) $sidebar_id The ID of the sidebar when it was registered.
    Required: Yes
Defined at:
Codex:

Removes a sidebar from the list.



Source

function unregister_sidebar( $sidebar_id ) {
	global $wp_registered_sidebars;

	unset( $wp_registered_sidebars[ $sidebar_id ] );
}