WordPress开发者和主题制作者的搜索引擎



unregister_sidebar ›

Since2.2.0
已弃用n/a
unregister_sidebar ( $sidebar_id )
参数:
  • (string|int) $sidebar_id The ID of the sidebar when it was registered.
    Required: Yes
定义在:
文档:

Removes a sidebar from the list.



源码

function unregister_sidebar( $sidebar_id ) {
	global $wp_registered_sidebars;

	unset( $wp_registered_sidebars[ $sidebar_id ] );
}