onetone_excerpt_length

The Onetone onetone excerpt length function.

Description

onetone_excerpt_length( $length ); 

Parameters (1)

0. $length
The length.

Usage

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

Defined (1)

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

/includes/theme-functions.php  
  1. function onetone_excerpt_length( $length ) { 
  2.  
  3. $excerpt_length = onetone_option('excerpt_length', '55'); 
  4. $excerpt_length = absint($excerpt_length); 
  5. return absint($excerpt_length); 
  6.