A WordPress-centric search engine for devs and theme authors



current_theme_supports-{$feature} ›

Since3.4.0
Deprecatedn/a
apply_filters( "current_theme_supports-{$feature}", true, $args, $_wp_theme_features[ $feature ] )
Parameters: (3)
  • (bool) true Whether the current theme supports the given feature. Default true.
    Required: Yes
  • (array) $args Array of arguments for the feature.
    Required: Yes
  • (string) $feature The theme feature.
    Required: Yes
Defined at:
Codex:

Filters whether the current theme supports a specific feature.

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'.





Source

return apply_filters( "current_theme_supports-{$feature}", true, $args, $_wp_theme_features[ $feature ] );