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
if ( !function_exists( 'the_header_image_tag' ) ) { require_once ABSPATH . WPINC . '/theme.php'; } // Optional. Attributes for the image markup. Default empty. $attr = array(); // NOTICE! Understand what this does before running. $result = the_header_image_tag($attr);
Defined (1)
The function is defined in the following location(s).
- /wp-includes/theme.php
- function the_header_image_tag( $attr = array() ) {
- echo get_header_image_tag( $attr );
- }