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.


Top ↑

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.


Top ↑

Source

File: wp-includes/theme.php

View on Trac



Top ↑

Changelog

Changelog
VersionDescription
3.4.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More