Advertisement
Guest User

Untitled

a guest
Dec 7th, 2017
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  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);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement