get_theme_support


get_theme_support ( $feature, $args )

Parameters:
  • (string) feature The feature to check. See add_theme_support() for the list of possible values.
  • (mixed) args Optional extra arguments to be checked against certain features.
Returns:
  • (mixed) The array of extra arguments or the value for the registered feature.
Defined at:
Change Log:
  • 5: .

Description

Gets the theme support arguments passed when registering that support.Example usage: get_theme_support( 'custom-logo' ); get_theme_support( 'custom-header', 'width' );

Related Functions

current_theme_supports, add_theme_support, remove_theme_support, _remove_theme_support, get_theme_root

Top Google Results

User discussions

wpseek mobile