wpseek.com
A WordPress-centric search engine for devs and theme authors



wp_get_widget_defaults › WordPress Function

Since2.2.0
Deprecatedn/a
wp_get_widget_defaults ( No parameters )
Access:
  • private
Returns:
  • (array)
Defined at:
Codex:

Retrieve default registered sidebars list.



Source

function wp_get_widget_defaults() {
	global $wp_registered_sidebars;

	$defaults = array();

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

	return $defaults;
}