core_get_user_description_limit

The BuddyPress cover core get user description limit function.

Description

core_get_user_description_limit( $user_id ); 

Parameters (1)

0. $user_id
The user id.

Usage

  1. if ( !function_exists( 'core_get_user_description_limit' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress-cover/bp-cover.php'; 
  3.  
  4. // The user id. 
  5. $user_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = core_get_user_description_limit($user_id); 
  9.  

Defined (1)

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

/bp-cover.php  
  1. function core_get_user_description_limit( $user_id ) { 
  2. $user_bio = core_get_user_description_box( $user_id ); 
  3. $biography = wp_trim_words( $user_bio, 15, '...' ); 
  4. return $biography;