WordPress at Your Fingertips
function is not described

_wp_sidebars_changed() WP 3.3.0

Handle sidebars config after theme change

This is an internal function for using it by WP core itself. It's not recommended to use this function in your code.

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 5.7.2

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

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

	retrieve_widgets( true );
}