get_background_color() WordPress Function
The get_background_color() function is used to retrieve the background color of an element. The function takes one parameter, which is the element's ID. The function returns the background color of the element as a string.
get_background_color() #
Retrieves value for custom background color.
Return
(string)
Source
File: wp-includes/theme.php
function get_background_color() { return get_theme_mod( 'background_color', get_theme_support( 'custom-background', 'default-color' ) ); }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |