the_custom_header_markup

The timeline below displays how wordpress function the_custom_header_markup has changed across different WordPress versions. If a version is not listed, refer to the next available version below.

WordPress Version: 5.5

/**
 * Prints the markup for a custom header.
 *
 * A container div will always be printed in the Customizer preview.
 *
 * @since 4.7.0
 */
function the_custom_header_markup()
{
    $custom_header = get_custom_header_markup();
    if (empty($custom_header)) {
        return;
    }
    echo $custom_header;
    if (is_header_video_active() && (has_header_video() || is_customize_preview())) {
        wp_enqueue_script('wp-custom-header');
        wp_localize_script('wp-custom-header', '_wpCustomHeaderSettings', get_header_video_settings());
    }
}

WordPress Version: 4.7

/**
 * Print the markup for a custom header.
 *
 * A container div will always be printed in the Customizer preview.
 *
 * @since 4.7.0
 */
function the_custom_header_markup()
{
    $custom_header = get_custom_header_markup();
    if (empty($custom_header)) {
        return;
    }
    echo $custom_header;
    if (is_header_video_active() && (has_header_video() || is_customize_preview())) {
        wp_enqueue_script('wp-custom-header');
        wp_localize_script('wp-custom-header', '_wpCustomHeaderSettings', get_header_video_settings());
    }
}