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_5637' );
function filter_function_name_5637( $sidebars_widgets ){
	// filter...

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

Where the hook is called

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

Where the hook is used (in WP core)

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