WPDev.one
Core Function
View Source on Trac ↗

current_theme_supports()

current_theme_supports( mixed $feature, mixed $args )

Checks a theme's support for a given feature.

Parameters 2 required

Name / Type Description
string

$feature The feature being checked. See add_theme_support() for the list of possible values.

Required
mixed

...$args Optional extra arguments to be checked against certain features.

Required

Return Value

(bool)
True if the active theme supports the feature, false otherwise.

Function Information

Since Version
2.9.0
Source File
wp-includes/theme.php
Advertisement