Skip to:
Content

BuddyPress.org

Opened 10 years ago

Closed 10 years ago

#6526 closed enhancement (fixed)

Add $group object to bp_get_group_join_button filter.

Reported by: dcavins's profile dcavins Owned by: dcavins's profile dcavins
Milestone: 2.4 Priority: low
Severity: minor Version: 2.0
Component: Groups Keywords: has-patch commit
Cc: david.cavins@…

Description

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.

Attachments (1)

6526.01.patch (607 bytes) - added by dcavins 10 years ago.

Download all attachments as: .zip

Change History (3)

@dcavins
10 years ago

#1 @DJPaul
10 years ago

  • Keywords commit added
  • Milestone changed from Awaiting Review to 2.4

Sure. Go ahead!

#2 @dcavins
10 years ago

  • Owner set to dcavins
  • Resolution set to fixed
  • Status changed from new to closed

In 9969:

Add $group to bp_get_group_join_button filter.

Add the current BuddyPress group object to the
bp_get_group_join_button filter arguments.

Fixes #6526.

Note: See TracTickets for help on using tickets.