Note: The filter is also evaluated for empty sidebars, and on both the front end and back end, including the Inactive Widgets sidebar on the Widgets screen.
Parameters
$did_onebool
Whether at least one widget was rendered in the sidebar. Default false.
874* @since 3.9.0875*876* @param bool$did_one Whether at least one widget was rendered in the sidebar.877*Defaultfalse.878* @param int|string$index Index, name,orID of the dynamic sidebar.879*/880returnapply_filters('dynamic_sidebar_has_widgets',$did_one,$index);881}882883/**884* Determines whether a given widget is displayed on the front end.885*886*Either$callbackor$id_base can be used.
History
Introduced in 3.9.0. Unchanged from 6.7.7 through 7.1.0.