mh_impact_lite_excerpt

The MH Impact lite mh impact lite excerpt function.

Description

mh_impact_lite_excerpt( $excerpt_length ); 

Parameters (1)

0. $excerpt_length
The excerpt length.

Usage

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

Defined (1)

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

/includes/mh-custom-functions.php  
  1. function mh_impact_lite_excerpt($excerpt_length) { 
  2. $excerpt = get_the_excerpt(); 
  3. echo '<div class="mh-excerpt">' . wp_trim_words($excerpt , $excerpt_length) . '</div>' . "\n";