onetone_cover_content

The Onetone onetone cover content function.

Description

onetone_cover_content( (number) $count, $content ); 

Parameters (2)

0. $count (number)
The count.
1. $content
The content.

Usage

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

Defined (1)

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

/includes/theme-functions.php  
  1. function onetone_cover_content($count, $content) { 
  2. $content = substr($content, 0, $count); 
  3. $content = substr($content, 0, strripos($content, " ")); 
  4. $content = $content.'[...]'; 
  5. return $content;