Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
08/12/2019 08:42:30 PM (6 years ago)
Author:
dcavins
Message:

Introduce BP_Invitation and BP_Invitation_Manager.

  • Add BP_Invitation, a new class describing generic invitation objects with methods for adding, updating and deleting invitations and membership requests.
  • Add a creation routine for the new table that will contain invitations data.
  • Add BP_Invitation_Manager, a new class that offers helper functions for managing BP_Invitation objects. For most use cases, this class will be extended for new invitation types, like group invitations.
  • Add unit tests for the new classes.

See #6210.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/bp-core-update.php

    r12390 r12428  
    212212        bp_core_add_page_mappings( $default_components, 'delete' );
    213213        bp_core_install_emails();
     214        bp_core_install_invitations();
    214215
    215216    // Upgrades.
     
    552553 *
    553554 * - Make sure the custom visibility is disabled for the default profile field.
     555 * - Create the invitations table.
    554556 *
    555557 * @since 5.0.0
     
    580582        )
    581583    );
     584
     585    bp_core_install_invitations();
    582586}
    583587
Note: See TracChangeset for help on using the changeset viewer.