Retrieves value for custom background color.
Source
function get_background_color() {
return get_theme_mod( 'background_color', get_theme_support( 'custom-background', 'default-color' ) );
}
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |
CARVIEW |
Retrieves value for custom background color.
function get_background_color() {
return get_theme_mod( 'background_color', get_theme_support( 'custom-background', 'default-color' ) );
}
Uses | Description |
---|---|
get_theme_support()wp-includes/theme.php | Gets the theme support arguments passed when registering that support. |
get_theme_mod()wp-includes/theme.php | Retrieves theme modification value for the active theme. |
Used by | Description |
---|---|
Custom_Background::admin_page()wp-admin/includes/class-custom-background.php | Displays the custom background page. |
background_color()wp-includes/theme.php | Displays background color value. |
_custom_background_cb()wp-includes/theme.php | Default custom background callback. |
get_body_class()wp-includes/post-template.php | Retrieves an array of the class names for the body element. |
Version | Description |
---|---|
3.0.0 | Introduced. |
You must log in before being able to contribute a note or feedback.
Get background color