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.
876* @since 3.9.0877*878* @param bool$did_one Whether at least one widget was rendered in the sidebar.879*Defaultfalse.880* @param int|string$index Index, name,orID of the dynamic sidebar.881*/882returnapply_filters('dynamic_sidebar_has_widgets',$did_one,$index);883}884885/**886* Determines whether a given widget is displayed on the front end.887*888*Either$callbackor$id_base can be used.
History
Introduced in 3.9.0. Unchanged from 6.7.7 through 7.1.0.