Skip to:
Content

BuddyPress.org

Ticket #6688: 6688.01.patch

File 6688.01.patch, 778 bytes (added by dcavins, 9 years ago)

Add user_id as a param in groups_send_invites hook

  • src/bp-groups/bp-groups-functions.php

    diff --git src/bp-groups/bp-groups-functions.php src/bp-groups/bp-groups-functions.php
    index 9cadd37..458f925 100644
    function groups_send_invites( $user_id, $group_id ) { 
    12531253         * Fires after the sending of invites for a group.
    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.
     1260         * @param int   $user_id       ID of the inviting user.
    12591261         */
    1260         do_action( 'groups_send_invites', $group_id, $invited_users );
     1262        do_action( 'groups_send_invites', $group_id, $invited_users, $user_id );
    12611263}
    12621264
    12631265/**