WordPress at a glance
filter is not described

sidebars_widgets filter-hook . WP 2.7.0

Filters the list of sidebars and their widgets.


add_filter( 'sidebars_widgets', 'filter_function_name_7733' );
function filter_function_name_7733( $sidebars_widgets ){
	// filter...

	return $sidebars_widgets;
An associative array of sidebars and their widgets.

Where the hook is called

wp-includes/widgets.php 930
return apply_filters( 'sidebars_widgets', $sidebars_widgets );

Where the hook is used (in WP core)

wp-includes/class-wp-customize-widgets.php 373
add_filter( 'sidebars_widgets', array( $this, 'preview_sidebars_widgets' ), 1 );
wp-includes/class-wp-customize-widgets.php 1813
add_filter( 'sidebars_widgets', $filter_callback, 1000 );
wp-includes/class-wp-customize-widgets.php 1821
remove_filter( 'sidebars_widgets', $filter_callback, 1000 );