Organisation invitations

An organisation invitation records that someone has been invited to join a site, and optionally which team (BuddyPress group) they will play in. It replaces BuddyPress’s site invitation, and lets someone sign up for a team without being in it until their membership is approved.

How it is stored

Lifecycle

All of it runs in network-activated LH Membership, so it behaves the same when approval or rejection runs for another site over MCP with site_id.

Hooks

Code

includes/lh-membership-organisation-team-invitations-class.php (lifecycle) and includes/lh-membership-organisation-team-invitation-manager.php (the BuddyPress invitation manager). LH_Membership_user_invitations_class reads and creates site invitations through it. (Since 2.101.0; replaces BuddyPress site invitations since 2.103.0; kept as history since 2.104.0.)