WordPress at a glance
function is not described

_wp_sidebars_changed() WP 3.3.0

Handle sidebars config after theme change

  • Global. Array. $sidebars_widgets

No Hooks.

Return

Nothing (null).

Usage

_wp_sidebars_changed();

Code of wp sidebars changed: wp-includes/widgets.php VER 5.1.1

<?php
function _wp_sidebars_changed() {
	global $sidebars_widgets;

	if ( ! is_array( $sidebars_widgets ) ) {
		$sidebars_widgets = wp_get_sidebars_widgets();
	}

	retrieve_widgets( true );
}