dynamic_sidebar_has_widgets

dynamic_sidebar_has_widgets

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('dynamic_sidebar_has_widgets') is found 2 times:

  • /wp-includes/widgets.php line 719
    715
    716
    717
    718
    719
    720
    721
    722
    723
    724
        do_action( 'dynamic_sidebar_before', $index, false );
        /** This action is documented in wp-includes/widget.php */
        do_action( 'dynamic_sidebar_after', $index, false );
        /** This filter is documented in wp-includes/widget.php */
        return apply_filters( 'dynamic_sidebar_has_widgets', false, $index );
    }
     
    $sidebar = $wp_registered_sidebars[ $index ];
     
    $sidebar['before_sidebar'] = sprintf( $sidebar['before_sidebar'], $sidebar['id'], $sidebar['class'] );
  • /wp-includes/widgets.php line 880
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
         * @param bool       $did_one Whether at least one widget was rendered in the sidebar.
         *                            Default false.
         * @param int|string $index   Index, name, or ID of the dynamic sidebar.
         */
        return apply_filters( 'dynamic_sidebar_has_widgets', $did_one, $index );
    }
     
    /**
     * Determines whether a given widget is displayed on the front end.
     *
     * Either $callback or $id_base can be used