WordPress at Your Fingertips

get_background_image() WP 1.0

Retrieve background image for custom background.

1 time — 0.004724 sec (very slow) | 50000 times — 4.45 sec (fast) | PHP 7.2.5, WP 5.0

No Hooks.

Return

String.

Usage

get_background_image();

Changelog

Since 3.0.0 Introduced.

Code of get_background_image() WP 5.8.1

function get_background_image() {
	return get_theme_mod( 'background_image', get_theme_support( 'custom-background', 'default-image' ) );
}

theme background (color image)

Settings (customizer)

No comments
    Log In