This page redirects to an external site: https://developer.wordpress.org/reference/functions/wp_get_sidebars_widgets/
Retrieve full list of sidebars and their widgets.
Will upgrade sidebar widget list, if needed. Will also save updated list, if needed.
Example:
array(4) {
["wp_inactive_widgets"]=>
array(0) {
}
["sidebar-1"]=>
array(5) {
[0]=>
string(8) "search-2"
[1]=>
string(14) "recent-posts-2"
[2]=>
string(17) "recent-comments-2"
[3]=>
string(10) "archives-2"
[4]=>
string(12) "categories-2"
[5]=>
string(6) "meta-2"
}
["sidebar-2"]=>
array(0) {
}
["sidebar-3"]=>
array(0) {
}
}
Since: 2.2
wp_get_sidebars_widgets() is located in wp-includes/widgets.php
Sidebars: is_active_sidebar(), is_dynamic_sidebar(), dynamic_sidebar(), register_sidebars(), register_sidebar(), unregister_sidebar(), wp_register_sidebar_widget(), wp_unregister_sidebar_widget(), wp_get_sidebars_widgets(), wp_set_sidebars_widgets()