WordPress at a glance

get_background_image() WP 1.0

Retrieve background image for custom background.

Basis of: background_image()
1 time = 0.004724s = very slow | 50000 times = 4.45s = 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.5.1

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

From category: Settings (customizer)

No comments
    Log In . Register