get_background_image
Retrieve background image for custom background.
Description
(string) get_background_image();
Returns (string)
Usage
if ( !function_exists( 'get_background_image' ) ) { require_once ABSPATH . WPINC . '/theme.php'; } // NOTICE! Understand what this does before running. $result = get_background_image();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/theme.php
- function get_background_image() {
- return get_theme_mod('background_image', get_theme_support( 'custom-background', 'default-image' ) );
- }