firsttec_excerpt_length

Sets the post excerpt length to 40 characters.

Description

(int) firsttec_excerpt_length( $length ); 

To override this length in a child theme, remove the filter and add your own function tied to the excerpt_length filter hook.

Returns (int)

Parameters (1)

0. $length
The length.

Usage

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

Defined (1)

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

/functions.php  
  1. function firsttec_excerpt_length( $length ) { 
  2. return 40;