get_custom_header_markup

Retrieve the markup for a custom header.

Description

(string) get_custom_header_markup(); 

The container div will always be returned in the Customizer preview.

Returns (string)

The markup for a custom header on success.


Usage

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

Defined (1)

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

/wp-includes/theme.php  
  1. function get_custom_header_markup() { 
  2. return ''; 
  3.  
  4. return sprintf( 
  5. '<div id="wp-custom-header" class="wp-custom-header">%s</div>',  
  6. );