Uses
| Uses | Description |
|---|---|
| wp-includes/theme.php: get_theme_support() | Gets the theme support arguments passed when registering that support. |
| wp-includes/theme.php: get_theme_mod() | Retrieves theme modification value for the current theme. |
Retrieves background image for custom background.
(string)
File: wp-includes/theme.php
function get_background_image() {
return get_theme_mod( 'background_image', get_theme_support( 'custom-background', 'default-image' ) );
} | Version | Description |
|---|---|
| 3.0.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/get_background_image