How to determine which sidebar the widget has been added to, via widget admin?
$sideBars = wp_get_sidebars_widgets (); $mySideBar = false; foreach ($sideBars as $sideBarName => $sideBar) { if (array_search ($this->id, $sideBar) !== false) { $mySideBar = $sideBarName; break; } }