wpseek.com
Outil de recherche WordPress pour les développeurs et auteurs de thèmes



unregister_sidebar › WordPress Function

Depuis2.2.0
Dépréciéen/a
unregister_sidebar ( $sidebar_id )
Paramètres:
  • (string|int) $sidebar_id The ID of the sidebar when it was registered.
    Requis: Oui
Défini(e) dans:
Codex:

Removes a sidebar from the list.



Source

function unregister_sidebar( $sidebar_id ) {
	global $wp_registered_sidebars;

	unset( $wp_registered_sidebars[ $sidebar_id ] );
}