Uses
| Uses | Description |
|---|---|
| wp-includes/theme.php: get_header_image() | Retrieves header image for custom header. |
| wp-includes/formatting.php: esc_url() | Checks and cleans a URL. |
Displays header image URL.
File: wp-includes/theme.php
function header_image() {
$image = get_header_image();
if ( $image ) {
echo esc_url( $image );
}
} | Version | Description |
|---|---|
| 2.1.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/header_image