mh_magazine_lite_archive_title_prefix

The MH Magazine lite mh magazine lite archive title prefix function.

Description

mh_magazine_lite_archive_title_prefix( $title ); 

Parameters (1)

0. $title
The title.

Usage

  1. if ( !function_exists( 'mh_magazine_lite_archive_title_prefix' ) ) { 
  2. require_once '/includes/mh-custom-functions.php'; 
  3.  
  4. // The title. 
  5. $title = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = mh_magazine_lite_archive_title_prefix($title); 
  9.  

Defined (1)

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

/includes/mh-custom-functions.php  
  1. function mh_magazine_lite_archive_title_prefix($title) { 
  2. if (is_category()) { 
  3. $title = single_cat_title('', false); 
  4. } elseif (is_tag()) { 
  5. $title = single_tag_title('', false); 
  6. } elseif (is_author()) { 
  7. $title = sprintf(esc_html__('Articles by %s', 'mh-magazine-lite'), '<span class="vcard">' . get_the_author() . '</span>'); 
  8. return $title;