Skip to:
Content

BuddyPress.org

Changeset 12759


Ignore:
Timestamp:
10/16/2020 04:12:53 PM (4 years ago)
Author:
dcavins
Message:

Allow invitations table name to be filtered.

Add the bp_invitations_table_name filter in
BP_Invitation_Manager::get_table_name().

Fixes #8375.

File:
1 edited

Legend:

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

    r12428 r12759  
    5151     */
    5252    public static function get_table_name() {
    53         return buddypress()->table_prefix . 'bp_invitations';
     53        /**
     54         * Filter the invitations table name.
     55         *
     56         * @since 7.0.0
     57         *
     58         * @var string $table_name Name of the invitations table.
     59         */
     60        $table_name = apply_filters( 'bp_invitations_table_name', 'bp_invitations' );
     61
     62        return buddypress()->table_prefix . $table_name;
    5463    }
    5564
Note: See TracChangeset for help on using the changeset viewer.