header_image
Display header image URL.
Description
header_image();
Usage
if ( !function_exists( 'header_image' ) ) { require_once ABSPATH . WPINC . '/theme.php'; } // NOTICE! Understand what this does before running. $result = header_image();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/theme.php
- function header_image() {
- $image = get_header_image();
- if ( $image ) {
- echo esc_url( $image );
- }
- }