wpseek.com
				A WordPress-centric search engine for devs and theme authors
			is_dynamic_sidebar › WordPress Function
Since2.2.0
Deprecatedn/a
› is_dynamic_sidebar ( No parameters )
| Returns: | 
 | 
| Defined at: | 
 | 
| Codex: | 
Determines whether the dynamic sidebar is enabled and used by the theme.
For more information on this and similar theme functions, check out the {@link Conditional Tags} article in the Theme Developer Handbook.Related Functions: dynamic_sidebar, is_active_sidebar, wp_list_widget_controls_dynamic_sidebar, is_registered_sidebar, is_main_site
	Source
function is_dynamic_sidebar() {
	global $wp_registered_widgets, $wp_registered_sidebars;
	$sidebars_widgets = get_option( 'sidebars_widgets' );
	foreach ( (array) $wp_registered_sidebars as $index => $sidebar ) {
		if ( ! empty( $sidebars_widgets[ $index ] ) ) {
			foreach ( (array) $sidebars_widgets[ $index ] as $widget ) {
				if ( array_key_exists( $widget, $wp_registered_widgets ) ) {
					return true;
				}
			}
		}
	}
	return false;
}