daily pastebin goal
42%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function sqr_group_excerpt_length($group) {
  2.     if(bp_is_active()) {
  3.         if (bp_is_group()) {
  4.             if (strlen($group) > 10) {
  5.                 $str = substr($group, 0, 101) . '';
  6.                 return $str;
  7.             }
  8.         }
  9.     }
  10. }
  11. add_filter('bp_get_group_description', 'sqr_group_excerpt_length',10,1);
RAW Paste Data
Top