wppaste
WordPress

apply_filters( "current_theme_supports-{$feature}", bool $supports, array $args, string $feature )

Since
3.4.0
Filters whether the active theme supports a specific feature.

Description

The dynamic portion of the hook name, $feature, refers to the specific theme feature. See add_theme_support() for the list of possible values.

Parameters

$supportsbool
Whether the active theme supports the given feature. Default true.
$argsarray
Array of arguments for the feature.
$featurestring
The theme feature.

Fired at · 2

  • wp-includes/theme.php:3186current_theme_supports()
  • wp-includes/theme.php:3232current_theme_supports()

Source

	 * @since 3.4.0	 *	 * @param bool   $supports Whether the active theme supports the given feature. Default true.	 * @param array  $args     Array of arguments for the feature.	 * @param string $feature  The theme feature.	 */	return apply_filters( "current_theme_supports-{$feature}", true, $args, $_wp_theme_features[ $feature ] ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores} /** * Checks a theme's support for a given feature before loading the functions which implement it. * * @since 2.9.0

History

Introduced in 3.4.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.9.7 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.