get_background_image

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

WordPress Version: 5.5

/**
 * Retrieves background image for custom background.
 *
 * @since 3.0.0
 *
 * @return string
 */
function get_background_image()
{
    return get_theme_mod('background_image', get_theme_support('custom-background', 'default-image'));
}

WordPress Version: 3.7

/**
 * Retrieve background image for custom background.
 *
 * @since 3.0.0
 *
 * @return string
 */
function get_background_image()
{
    return get_theme_mod('background_image', get_theme_support('custom-background', 'default-image'));
}