Skip to:
Content

BuddyPress.org

Ticket #8497: 8497.diff

File 8497.diff, 1.7 KB (added by sbrajesh, 3 years ago)
  • src/bp-templates/bp-nouveau/includes/groups/template-tags.php

    diff --git a/src/bp-templates/bp-nouveau/includes/groups/template-tags.php b/src/bp-templates/bp-nouveau/includes/groups/template-tags.php
    index 4e2028956..22c56c81b 100644
    a b function bp_nouveau_groups_manage_members_buttons( $args = array() ) { 
    10101010                 * @param array  $buttons The list of buttons.
    10111011                 * @param int    $group   The current group object.
    10121012                 * @param string $type    Whether we're displaying a groups loop or a groups single item.
     1013                 * @param array  $args    Button args.
    10131014                 */
    1014                 $buttons_group = apply_filters( 'bp_nouveau_get_groups_buttons', $buttons, $group, $type );
     1015                $buttons_group = apply_filters( 'bp_nouveau_get_groups_buttons', $buttons, $group, $type, $args );
    10151016
    10161017                if ( ! $buttons_group ) {
    10171018                        return $buttons;
  • src/bp-templates/bp-nouveau/includes/members/template-tags.php

    diff --git a/src/bp-templates/bp-nouveau/includes/members/template-tags.php b/src/bp-templates/bp-nouveau/includes/members/template-tags.php
    index bd578b3bb..00aaad185 100644
    a b function bp_nouveau_members_loop_buttons( $args = array() ) { 
    470470                 * @param array  $buttons The list of buttons.
    471471                 * @param int    $user_id The displayed user ID.
    472472                 * @param string $type    Whether we're displaying a members loop or a user's page
     473                 * @param array  $args    Button args.
    473474                 */
    474                 $buttons_group = apply_filters( 'bp_nouveau_get_members_buttons', $buttons, $user_id, $type );
     475                $buttons_group = apply_filters( 'bp_nouveau_get_members_buttons', $buttons, $user_id, $type, $args );
    475476                if ( ! $buttons_group ) {
    476477                        return $buttons;
    477478                }