WordPress at a glance
function is not described

wp_get_widget_defaults() WP 2.2.0

Retrieve default registered sidebars list.

  • Global. Array. $wp_registered_sidebars Registered sidebars.

No Hooks.

Return

Array.

Usage

wp_get_widget_defaults();

Code of wp get widget defaults: wp-includes/widgets.php VER 5.1.1

<?php
function wp_get_widget_defaults() {
	global $wp_registered_sidebars;

	$defaults = array();

	foreach ( (array) $wp_registered_sidebars as $index => $sidebar ) {
		$defaults[ $index ] = array();
	}

	return $defaults;
}