mh_impact_lite_custom_excerpt_more

The MH Impact lite mh impact lite custom excerpt more function.

Description

mh_impact_lite_custom_excerpt_more(); 

Usage

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

Defined (1)

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

/includes/mh-custom-functions.php  
  1. function mh_impact_lite_custom_excerpt_more() { 
  2. global $post; 
  3. $mh_impact_lite_options = mh_impact_lite_theme_options(); 
  4. $excerpt = get_the_excerpt(); 
  5. $permalink = get_permalink($post->ID); 
  6. if ($mh_impact_lite_options['excerpt_more'] != '') { 
  7. $excerpt .= ' <a href="' . esc_url($permalink) . '" title="' . the_title_attribute('echo=0') . '">' . esc_attr($mh_impact_lite_options['excerpt_more']) . '</a>' . "\n"; 
  8. return $excerpt;