header_image() WordPress Function
The header_image() function allows you to display a custom header image on your WordPress site. You can upload your own image, or choose from a selection of built-in images. If you don't set a custom header image, the default image will be used.
header_image() #
Displays header image URL.
Source
File: wp-includes/theme.php
function header_image() { $image = get_header_image(); if ( $image ) { echo esc_url( $image ); } }
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
2.1.0 | Introduced. |