wphooks.info - is_active_sidebar

is_active_sidebar

(trunk - 5.0-alpha-42716)

The hook occurs in the following file:

wp-includes/widgets.php:
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
	/**
	 * Filters whether a dynamic sidebar is considered "active".
	 *
	 * @since 3.9.0
	 *
	 * @param bool       $is_active_sidebar Whether or not the sidebar should be considered "active".
	 *                                      In other words, whether the sidebar contains any widgets.
	 * @param int|string $index             Index, name, or ID of the dynamic sidebar.
	 */
	return apply_filters( 'is_active_sidebar', $is_active_sidebar, $index );
}

//
// Internal Functions
//

/**
 * Retrieve full list of sidebars and their widget instance IDs.
 *