WPDev.one
Core Function
View Source on Trac ↗

add_theme_support()

add_theme_support( mixed $feature, mixed $args )

Registers theme support for a given feature.

Parameters 2 required

Name / Type Description
string

$feature The feature being added. Likely core values include: - 'admin-bar' - 'align-wide' - 'appearance-tools' - 'automatic-feed-links' - 'block-templates' - 'block-template-parts' - 'border' - 'core-block-patterns' - 'custom-background' - 'custom-header' - 'custom-line-height' - 'custom-logo' - 'customize-selective-refresh-widgets' - 'custom-spacing' - 'custom-units' - 'dark-editor-style' - 'disable-custom-colors' - 'disable-custom-font-sizes' - 'disable-custom-gradients' - 'disable-layout-styles' - 'editor-color-palette' - 'editor-gradient-presets' - 'editor-font-sizes' - 'editor-spacing-sizes' - 'editor-styles' - 'featured-content' - 'html5' - 'link-color' - 'menus' - 'post-formats' - 'post-thumbnails' - 'responsive-embeds' - 'starter-content' - 'title-tag' - 'widgets' - 'widgets-block-editor' - 'wp-block-styles'

Required
mixed

...$args Optional extra arguments to pass along with certain features.

Required

Return Value

((void)
| false) Void on success, false on failure.

Function Information

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