get_background_color

The timeline below displays how wordpress function get_background_color has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Retrieves value for custom background color.
 *
 * @since 3.0.0
 *
 * @return string
 */
function get_background_color()
{
    return get_theme_mod('background_color', get_theme_support('custom-background', 'default-color'));
}

WordPress Version: 3.7

/**
 * Retrieve value for custom background color.
 *
 * @since 3.0.0
 *
 * @return string
 */
function get_background_color()
{
    return get_theme_mod('background_color', get_theme_support('custom-background', 'default-color'));
}