WordPress at a glance
function is not described

_wp_sidebars_changed() WP 3.3.0

Handle sidebars config after theme change

No Hooks.

Return

Null. Nothing.

Usage

_wp_sidebars_changed();

Notes

  • Global. Array. $sidebars_widgets

Changelog

Since 3.3.0 Introduced.

Code of wp sidebars changed: wp-includes/widgets.php WP 5.2.2

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

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

	retrieve_widgets( true );
}