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:
  • 5: .

Description

Checks a theme's support for a given feature.Example usage: current_theme_supports( 'custom-logo' ); current_theme_supports( 'html5', 'comment-form' );

Related Functions

get_theme_support, remove_theme_support, current_theme_info, _remove_theme_support, add_theme_support

Top Google Results

User discussions

wpseek mobile