Skip to:
Content

BuddyPress.org

Changeset 12771


Ignore:
Timestamp:
10/28/2020 01:17:03 PM (5 weeks ago)
Author:
dcavins
Message:

Add BP Invitations table name to Members component.

To allow the BP Invitations table name to be filtered, add a new element, table_name_invitations, to the Members component's global_tables declaration.

Props imath.

Fixes #8375.

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-invitation-manager.php

    r12770 r12771  
    5151     */
    5252    public static function get_table_name() {
    53         return buddypress()->table_prefix . 'bp_invitations';
     53        return buddypress()->members->table_name_invitations;
    5454    }
    5555
  • trunk/src/bp-members/classes/class-bp-members-component.php

    r12748 r12771  
    177177            'search_string'   => __( 'Search Members...', 'buddypress' ),
    178178            'global_tables'   => array(
     179                'table_name_invitations'   => bp_core_get_table_prefix() . 'bp_invitations',
    179180                'table_name_last_activity' => bp_core_get_table_prefix() . 'bp_activity',
    180181                'table_name_signups'       => $wpdb->base_prefix . 'signups', // Signups is a global WordPress table.
Note: See TracChangeset for help on using the changeset viewer.