trim_excerpt

Funciton para quitar los puntos suspensivos del excerpt.

Description

trim_excerpt( $text ); 

Parameters (1)

0. $text
The text.

Usage

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

Defined (1)

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

/functions.php  
  1. function trim_excerpt($text) { 
  2. return str_replace(" [...]", '...', $text);