wppaste
WordPress

apply_filters( 'is_active_sidebar', bool $is_active_sidebar, int|string $index )

Since
3.9.0
Filters whether a dynamic sidebar is considered "active".

Compatibility

WordPress
since 3.9.0
  • 6.7.7
  • 6.8.8
  • 6.9.7
  • 7.0.4
  • 7.1.0

Present in every tracked release (6.7.7 to 7.1.0).

Parameters

$is_active_sidebarbool
Whether or not the sidebar should be considered "active".
In other words, whether the sidebar contains any widgets.
$indexint|string
Index, name, or ID of the dynamic sidebar.

Where this hook fires · 1

  • wp-includes/widgets.php:997is_active_sidebar()

Source code

	 * @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.//

Changelog

Introduced in 3.9.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

About this page

Parsed data
Generated from the wordpress-develop 6.8.8 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.