[buddypress-trac] [BuddyPress Trac] #6526: Add $group object to bp_get_group_join_button filter.

buddypress-trac noreply at wordpress.org
Tue Jun 23 19:49:31 UTC 2015


#6526: Add $group object to bp_get_group_join_button filter.
--------------------------------+-----------------------------
 Reporter:  dcavins             |      Owner:
     Type:  enhancement         |     Status:  new
 Priority:  low                 |  Milestone:  Awaiting Review
Component:  Component - Groups  |    Version:  2.0
 Severity:  minor               |   Keywords:  has-patch
--------------------------------+-----------------------------
 The only parameter passed along with the `bp_get_group_join_button` is the
 button object. It looks like this:
 {{{
 Array
 (
     [id] => accept_invite
     [component] => groups
     [must_be_logged_in] => 1
     [block_self] =>
     [wrapper_class] =>  private
     [wrapper_id] => groupbutton-5
     [link_href] => http://commonsdev.local/groups/istanbul-secrets
 /request-membership
     [link_text] => Accept Invitation
     [link_title] => Accept Invitation
     [link_class] => group-button accept-invite
 )
 }}}

 Passing the group object along with the button in the filter would make it
 much easier to generate new properties for the button.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/6526>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list