layers_excerpt_class

The Layers layers excerpt class function.

Description

layers_excerpt_class( $excerpt ); 

Parameters (1)

0. $excerpt
The excerpt.

Usage

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

Defined (1)

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

/functions.php  
  1. function layers_excerpt_class( $excerpt ) { 
  2. return str_replace( '<p', '<p class="excerpt"', $excerpt );