display_header_text

Whether to display the header text.

Description

display_header_text(); 

Usage

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

Defined (1)

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

/wp-includes/theme.php  
  1. function display_header_text() { 
  2. if ( ! current_theme_supports( 'custom-header', 'header-text' ) ) 
  3. return false; 
  4.  
  5. $text_color = get_theme_mod( 'header_textcolor', get_theme_support( 'custom-header', 'default-text-color' ) ); 
  6. return 'blank' !== $text_color;