Skip to:
Content

BuddyPress.org

Changeset 10351


Ignore:
Timestamp:
11/13/2015 03:16:32 AM (9 years ago)
Author:
dcavins
Message:

Add user_id param in groups_send_invites filter.

In addition to sending the affected group ID and
IDs of the invitees, knowing the ID of the
inviter would be useful at this action point.

Fixes #6688.

File:
1 edited

Legend:

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

    r10278 r10351  
    12541254     *
    12551255     * @since 1.0.0
     1256     * @since 2.5.0 Added $user_id to passed parameters.
    12561257     *
    12571258     * @param int   $group_id      ID of the group who's being invited to.
    12581259     * @param array $invited_users Array of users being invited to the group.
    1259      */
    1260     do_action( 'groups_send_invites', $group_id, $invited_users );
     1260     * @param int   $user_id       ID of the inviting user.
     1261     */
     1262    do_action( 'groups_send_invites', $group_id, $invited_users, $user_id );
    12611263}
    12621264
Note: See TracChangeset for help on using the changeset viewer.