The class you are using accepts value => name pair in the select options array so
foreach ( $GLOBALS['wp_registered_sidebars'] as $sidebar ) {
$sidebar_options[$sidebar['id']] = $sidebar['name'];
}
and then you can use $sidebar_options
.
The class you are using accepts value => name pair in the select options array so
foreach ( $GLOBALS['wp_registered_sidebars'] as $sidebar ) {
$sidebar_options[$sidebar['id']] = $sidebar['name'];
}
and then you can use $sidebar_options
.