has_custom_header

Check whether a custom header is set or not.

Description

has_custom_header(); 

Usage

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

Defined (1)

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

/wp-includes/theme.php  
  1. function has_custom_header() { 
  2. return true; 
  3.  
  4. return false;