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



is_registered_sidebar › WordPress Function

Since4.4.0
已弃用n/a
is_registered_sidebar ( $sidebar_id )
参数:
  • (string|int) $sidebar_id The ID of the sidebar when it was registered.
    Required: Yes
返回:
  • (bool) True if the sidebar is registered, false otherwise.
定义在:
文档:

Checks if a sidebar is registered.



源码

function is_registered_sidebar( $sidebar_id ) {
	global $wp_registered_sidebars;

	return isset( $wp_registered_sidebars[ $sidebar_id ] );
}