_wp_render_title_tag

Displays title tag with content.

Description

_wp_render_title_tag(); 

Usage

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

Defined (1)

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

/wp-includes/general-template.php  
  1. function _wp_render_title_tag() { 
  2. if ( ! current_theme_supports( 'title-tag' ) ) { 
  3. return; 
  4.  
  5. echo '<title>' . wp_get_document_title() . '</title>' . "\n";