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