dynamic_sidebar_has_widgets

dynamic_sidebar_has_widgets

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

See hook in core

Displaying hooks found in version: wordpress-6.4.3

apply_filters('dynamic_sidebar_has_widgets') is found 2 times:

  • /wp-includes/widgets.php line 711
    		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 872
    	 * @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