Skip to:
Content

BuddyPress.org

Changeset 12933


Ignore:
Timestamp:
04/29/2021 01:43:05 PM (3 months ago)
Author:
dcavins
Message:

Member Invites: Update a few action hooks.

Use members_invitations as the prefix when possible.

See #8139.

Location:
trunk/src/bp-members
Files:
4 edited

Legend:

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

    r12930 r12933  
    34133413            'send_invite'   => 0
    34143414        ),
    3415         'community_invite_user'
     3415        'members_invitations_invite_user'
    34163416    );
    34173417
  • trunk/src/bp-members/bp-members-notifications.php

    r12925 r12933  
    148148    }
    149149}
    150 add_action( 'community_membership_invite_accepted', 'bp_members_invitations_accepted_invitation_notification', 10, 3 );
     150add_action( 'members_invitations_invite_accepted', 'bp_members_invitations_accepted_invitation_notification', 10, 3 );
    151151
    152152/**
  • trunk/src/bp-members/bp-members-template.php

    r12930 r12933  
    29832983        // BP_Invitations_Invitation::get().
    29842984        'page_arg'          => 'ipage',
    2985     ), 'has_community_invitations' );
     2985    ), 'has_members_invitations' );
    29862986
    29872987    // Get the notifications.
  • trunk/src/bp-members/classes/class-bp-members-invitation-manager.php

    r12930 r12933  
    132132                 * @param int           $inviter_id ID of the user who invited this user to the site.
    133133                 */
    134                 do_action( 'community_membership_invite_accepted', $invite, $new_user, $invite->inviter_id );
     134                do_action( 'members_invitations_invite_accepted', $invite, $new_user, $invite->inviter_id );
    135135            }
    136136        }
Note: See TracChangeset for help on using the changeset viewer.