add_theme_support ( $feature )

  • (string) $feature The feature being added. Likely core values include 'post-formats', 'post-thumbnails', 'html5', 'custom-logo', 'custom-header-uploads', 'custom-header', 'custom-background', 'title-tag', 'starter-content', 'responsive-embeds', etc.
  • (mixed) $args,... Optional extra arguments to pass along with certain features.
  • (void|bool) False on failure, void otherwise.
Defined at:
Change Log:
  • 3: .
  • 3: .
  • 4: .
  • 4: .
  • 4: .
  • 5: .


Registers theme support for a given feature.

Must be called in the theme's functions.php file to work. If attached to a hook, it must be {@see 'after_setup_theme'}. The {@see 'init'} hook may be too late for some features.

Related Functions

get_theme_support, remove_theme_support, _remove_theme_support, add_post_type_support, current_theme_supports

Top Google Results

User discussions

wpseek mobile