Hello, try adding this to your functions.php of child theme
COPY CODE
function filtered_profile_data( $args ) {
$data = bp_get_member_profile_data( $args );
$defaults = array(
'field' => false, // Field name
'user_id' => $user_id
);
$r = wp_parse_args( $args, $defaults );
extract( $r, EXTR_SKIP );
switch($field) {
case 'About':
$len = 200;
break;
default:
$len =20;
break;
}
echo substr( $data, 0, $len);
$words = array_slice( explode( ' ', $data), 0, $len );
echo implode( ' ', $words );
}
Let me know if it works 🙂
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution