[buddypress-trac] [BuddyPress Trac] #5393: Introduce new filter in bp_get_group_description_excerpt() for setting the excerpt_length

buddypress-trac noreply at wordpress.org
Fri Feb 14 13:34:12 UTC 2014


#5393: Introduce new filter in bp_get_group_description_excerpt()  for setting the
excerpt_length
-------------------------+---------------------------
 Reporter:  lenasterg    |       Owner:  boonebgorges
     Type:  enhancement  |      Status:  closed
 Priority:  low          |   Milestone:  2.0
Component:  Groups       |     Version:  1.9.2
 Severity:  minor        |  Resolution:  fixed
 Keywords:               |
-------------------------+---------------------------

Comment (by lenasterg):

 Thanks boonebgorges!

 Just a small note to be sure. In your example you mean:

 {{{
 function bbg_custom_group_description_excerpt( $excerpt, $group ) {
     $excerpt = bp_create_excerpt( $group->description, 100 );
     return $excerpt;
 }
 add_filter( 'bp_get_group_description_excerpt',
 'bbg_custom_group_description_excerpt', 10, 2 );
 }}}

 which is working OK with the changes you made in 7865.


 P.S.
 You are great!!!

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5393#comment:3>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list