apply_filters( "current_theme_supports-{$feature}", bool , array $args , string $feature )
Filters whether the current theme supports a specific feature.
Description Description
The dynamic portion of the hook name, $feature
, refers to the specific theme feature. Possible values include ‘post-formats’, ‘post-thumbnails’, ‘custom-background’, ‘custom-header’, ‘menus’, ‘automatic-feed-links’, ‘html5’, ‘starter-content’, and ‘customize-selective-refresh-widgets’.
Parameters Parameters
-
(bool) true Whether the current theme supports the given feature. Default true.
- $args
-
(array) Array of arguments for the feature.
- $feature
-
(string) The theme feature.
Source Source
File: wp-includes/theme.php
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |