WordPress.org

Ready to get started?Download WordPress

Codex

Function Reference/is dynamic sidebar

Contents

Description

This Conditional Tag checks if the current sidebar has active widgets. This is a boolean function, meaning it returns either TRUE or FALSE.

Usage

 <?php is_dynamic_sidebar(); ?> 

Parameters

This tag does not accept any parameters.

Return Values

(boolean) 
True if the current sidebar has active widgets, otherwise the function returns 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.