background_image() WordPress Function

The background_image() function is used to set the background image for a Wordpress site. This function can be used in conjunction with the background_color() function to create a custom background for a Wordpress site.

background_image() #

Displays background image path.


Source

File: wp-includes/theme.php

function background_image() {
	echo get_background_image();
}


Top ↑

Changelog

Changelog
VersionDescription
3.0.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.

Show More