current_theme_supports-{$feature} WordPress Filter Hook
The current_theme_supports-{$feature} hook is called when a theme requests support for a certain feature. This hook allows themes to declare their support for a wide variety of features, including post formats, post thumbnails, and title tags. By declaring support for these features, themes can ensure that their content will be displayed correctly on all devices and browsers.
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
- $supports
(bool)Whether the active theme supports the given feature. Default true.
- $args
(array)Array of arguments for the feature.
- $feature
(string)The theme feature.
Source
File: wp-includes/theme.php
Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |