catchresponsive_excerpt_length

Sets the post excerpt length to n words.

Description

catchresponsive_excerpt_length( $length ); 

function tied to the excerpt_length filter hook.

Parameters (1)

0. $length
The length.

Usage

  1. if ( !function_exists( 'catchresponsive_excerpt_length' ) ) { 
  2. require_once '/inc/catchresponsive-core.php'; 
  3.  
  4. // The length. 
  5. $length = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = catchresponsive_excerpt_length($length); 
  9.  

Defined (1)

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

/inc/catchresponsive-core.php  
  1. function catchresponsive_excerpt_length( $length ) { 
  2. // Getting data from Customizer Options 
  3. $length = $options['excerpt_length']; 
  4. return $length;