get_background_image

Retrieve background image for custom background.

Description

(string) get_background_image(); 

Returns (string)


Usage

  1. if ( !function_exists( 'get_background_image' ) ) { 
  2. require_once ABSPATH . WPINC . '/theme.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = get_background_image(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/theme.php  
  1. function get_background_image() { 
  2. return get_theme_mod('background_image', get_theme_support( 'custom-background', 'default-image' ) );