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

  1. if ( !function_exists( 'the_custom_header_markup' ) ) { 
  2. require_once ABSPATH . WPINC . '/theme.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = the_custom_header_markup(); 
  7.  

Defined (1)

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

/wp-includes/theme.php  
  1. function the_custom_header_markup() { 
  2. $custom_header = get_custom_header_markup(); 
  3. if ( empty( $custom_header ) ) { 
  4. return; 
  5.  
  6. echo $custom_header; 
  7.  
  8. wp_enqueue_script( 'wp-custom-header' ); 
  9. wp_localize_script( 'wp-custom-header', '_wpCustomHeaderSettings', get_header_video_settings() );