WordPress at a glance

get_background_image() WP 1.0

Retrieve background image for custom background.

Is the basis for: 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-includes/theme.php WP 5.2.4

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

Related Functions

From category: Settings (customizer)

No comments
    Hello, !     Log In . Register