Filters whether the active theme supports a specific feature.
$supportsbool$argsarray$featurestringwp-includes/theme.php:3174current_theme_supports()wp-includes/theme.php:3220current_theme_supports() * @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.0Introduced in 3.4.0. Unchanged from 6.7.7 through 7.1.0.
Signature, return type and hooks compared across 5 parsed releases.