WordPress.org

Codex

Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/is dynamic sidebar

Description

This Conditional Tag checks if any registered sidebar has active widgets.

Usage

 <?php is_dynamic_sidebar(); ?> 

Parameters

This tag does not accept any parameters.

Return Values

(boolean) 
true if any registered sidebar contains a widget; otherwise false.

Examples

Change Log

Since: 2.2.0

Source File

is_dynamic_sidebar() is located in wp-includes/widgets.php.

Related

Sidebars: is_active_sidebar(), is_dynamic_sidebar(), dynamic_sidebar(), register_sidebars(), register_sidebar(), unregister_sidebar(), wp_register_sidebar_widget(), wp_unregister_sidebar_widget(), wp_get_sidebars_widgets(), wp_set_sidebars_widgets()

See also index of Function Reference and index of Template Tags.