On this page
apply_filters( "current_theme_supports-{$feature}", bool $supports, array $args, string $feature )
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.
Source
File: wp-includes/theme.php. View all references
return apply_filters( "current_theme_supports-{$feature}", true, $args, $_wp_theme_features[ $feature ] ); // phpcs:ignore WordPress.NamingConventions.ValidHookName.UseUnderscores
Related
Used By
| Used By | Description |
|---|---|
| current_theme_supports() wp-includes/theme.php | Checks a theme’s support for a given feature. |
Changelog
| Version | Description |
|---|---|
| 3.4.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/current_theme_supports-feature