WordPress at a glance
filter is not described

sidebars_widgets filter-hook . WP 2.7.0

Filters the list of sidebars and their widgets.

Usage

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

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

Список изменений

С версии 2.7.0 Введена.

Где вызывается хук

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

Где используется хук в ядре WP

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