Invitation meta

BuddyPress has no meta for invitations, so LH Membership adds it: per-invitation data such as when a reminder was sent, kept with the invitation and deleted with it.

Storage

Functions

Static methods on LH_Membership_organisation_team_invitations_class, with the same arguments as WordPress’s own meta functions:

They are deliberately not named bp_invitations_*_invitemeta(), so they cannot clash with BuddyBoss’s functions of that name or with any BuddyPress adds later.

Installation

The table is created with dbDelta if it is missing, once per network, keyed on the class’s schema_version() (recorded in the network option lh_membership-invitemeta_schema_version), never on the plugin version. A table that already exists with the same schema is used as it is: on LocalHero it was created earlier by BuddyBoss. If BuddyBoss is active, its own invitation meta functions are left alone; they share the table, so there is no conflict.

Filters

The code is in includes/lh-membership-organisation-team-invitations-class.php. (Since 2.113.0; table named from BuddyPress’s invitations table since 2.120.1.)