Attention Interested in functions, hooks, classes, or methods? Check out the new WordPress Code Reference!

Function Reference/wp get widget defaults

This function's access is marked as private. That means it is not intended for use by plugin and theme developers, but only in other core functions. It is listed here for completeness. Use any of these functions instead.


Retrieve default registered sidebars list.


This function does not accept any parameters.

Return Values

An array of empty arrays indexed by sidebar id.

Change Log

Since: 2.2

Source File

wp_get_widget_defaults() is located in wp-includes/widgets.php


Widgets: is_active_widget(), the_widget(), register_widget(), unregister_widget(), wp_register_widget_control(), wp_unregister_widget_control(), wp_convert_widget_settings(), wp_get_widget_defaults(), wp_widget_description()

See also index of Function Reference and index of Template Tags.