current_theme_supports
current_theme_supports ( $feature, $args )
Parameters:- (string) feature The feature being checked. See add_theme_support() for the list of possible values.
- (mixed) args Optional extra arguments to be checked against certain features.
Returns:- (bool) True if the active theme supports the feature, false otherwise.
Defined at:Change Log: - Introduced in WordPress: 2.9.0
- Deprecated in WordPress: —
Description
Checks a theme's support for a given feature.Example usage:
current_theme_supports( 'custom-logo' );
current_theme_supports( 'html5', 'comment-form' );