Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
04/20/2021 04:02:43 PM (5 months ago)
Author:
dcavins
Message:

Introduce BP_Optouts.

Add capability to store opt-out requests from
nonmembers who have been contacted by
communication from a BuddyPress site. These
new objects are represented by the class BP_Optout
and are stored in a new database table
wp_bp_optouts. This commit adds the following capabilities:

  • Add new class BP_Optout.
  • Add new table wp_bp_optouts.
  • Create new table on installation or upgrade.
  • Add convenience functions for adding, fetching or

deleting opt-outs.

  • Add tests for basic opt-out management.

See #8448.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-members/classes/class-bp-members-component.php

    r12892 r12898  
    179179                'table_name_invitations'   => bp_core_get_table_prefix() . 'bp_invitations',
    180180                'table_name_last_activity' => bp_core_get_table_prefix() . 'bp_activity',
     181                'table_name_optouts'       => bp_core_get_table_prefix() . 'bp_optouts',
    181182                'table_name_signups'       => $wpdb->base_prefix . 'signups', // Signups is a global WordPress table.
    182183            )
Note: See TracChangeset for help on using the changeset viewer.