skt_biz_content

The SKT Biz skt biz content function.

Description

skt_biz_content( $limit ); 

Parameters (1)

0. $limit
The limit.

Usage

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

Defined (1)

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

/inc/custom-functions.php  
  1. function skt_biz_content($limit) { 
  2. $content = explode(' ', get_the_content(), $limit); 
  3. if (count($content)>=$limit) { 
  4. array_pop($content); 
  5. $content = implode(" ", $content).'...'; 
  6. } else { 
  7. $content = implode(" ", $content); 
  8. }  
  9. $content = preg_replace('/\[.+\]/', '', $content); 
  10. $content = apply_filters('the_content', $content); 
  11. $content = str_replace(']]>', ']]>', $content); 
  12. return $content;