bp_activity_get_excerpt_length

Gets the excerpt length for activity items.

Description

(int) bp_activity_get_excerpt_length(); 

Returns (int)

Character length for activity excerpts.


Usage

  1. if ( !function_exists( 'bp_activity_get_excerpt_length' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-activity/bp-activity-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_activity_get_excerpt_length(); 
  7.  

Defined (1)

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

/bp-activity/bp-activity-functions.php  
  1. function bp_activity_get_excerpt_length() { 
  2. /** 
  3. * Filters the excerpt length for the activity excerpt. 
  4. * @since 1.5.0 
  5. * @param int Character length for activity excerpts. 
  6. */