the_header_image_tag

Display the image markup for a custom header image.

Description

the_header_image_tag( (array) $attr = array() ); 

Parameters (1)

0. $attr — Optional. (array) => array()
Attributes for the image markup. Default empty.

Usage

  1. if ( !function_exists( 'the_header_image_tag' ) ) { 
  2. require_once ABSPATH . WPINC . '/theme.php'; 
  3.  
  4. // Optional. Attributes for the image markup. Default empty. 
  5. $attr = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = the_header_image_tag($attr); 
  9.  

Defined (1)

The function is defined in the following location(s).

/wp-includes/theme.php  
  1. function the_header_image_tag( $attr = array() ) { 
  2. echo get_header_image_tag( $attr );