Skip to:
Content

BuddyPress.org

Changeset 9969


Ignore:
Timestamp:
06/27/2015 02:21:24 AM (9 years ago)
Author:
dcavins
Message:

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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/bp-groups-template.php

    r9964 r9969  
    34373437         *
    34383438         * @since BuddyPress (1.2.6)
     3439         * @since BuddyPress (2.4.0) Added $group parameter to filter args.
    34393440         *
    34403441         * @param string $button HTML button for joining a group.
    3441          */
    3442         return bp_get_button( apply_filters( 'bp_get_group_join_button', $button ) );
     3442         * @param object $group BuddyPress group object
     3443         */
     3444        return bp_get_button( apply_filters( 'bp_get_group_join_button', $button, $group ) );
    34433445    }
    34443446
Note: See TracChangeset for help on using the changeset viewer.