the_custom_header_markup
Print the markup for a custom header.
Description
the_custom_header_markup();
A container div will always be printed in the Customizer preview.
Usage
if ( !function_exists( 'the_custom_header_markup' ) ) { require_once ABSPATH . WPINC . '/theme.php'; } // NOTICE! Understand what this does before running. $result = the_custom_header_markup();
Defined (1)
The function is defined in the following location(s).
- /wp-includes/theme.php
- function the_custom_header_markup() {
- $custom_header = get_custom_header_markup();
- if ( empty( $custom_header ) ) {
- return;
- }
- echo $custom_header;
- wp_enqueue_script( 'wp-custom-header' );
- wp_localize_script( 'wp-custom-header', '_wpCustomHeaderSettings', get_header_video_settings() );
- }
- }