WordPress at a glance

the_custom_header_markup() WP 1.0

Print the markup for a custom header.

A container div will always be printed in the Customizer preview.

No Hooks.

Return

Nothing (null).

Usage

the_custom_header_markup();

Code of the_custom_header_markup: wp-includes/theme.php VER 5.0

<?php
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() );
	}
}

Related Functions

From tag: custom_header (theme options: video color image)

More from category: Other Theme Functions

No comments
    Hello, !     Log In . Register