WordPress at a glance
function is not described

header_image() WP 2.1.0

Displays header image URL.

No Hooks.

Return

null. Nothing.

Usage

header_image();

Changelog

Since 2.1.0 Introduced.

Code of header_image() WP 5.7.2

<?php
function header_image() {
	$image = get_header_image();

	if ( $image ) {
		echo esc_url( $image );
	}
}