diff --git src/bp-core/admin/bp-core-admin-tools.php src/bp-core/admin/bp-core-admin-tools.php
index 417a615b3..f3c588080 100644
|
|
|
function bp_admin_invitations_table() { |
| 360 | 360 | bp_core_install_invitations(); |
| 361 | 361 | |
| 362 | 362 | // Check for existence of invitations table. |
| 363 | | $bp_prefix = bp_core_get_table_prefix(); |
| 364 | | $table_name = "{$bp_prefix}bp_invitations"; |
| | 363 | $table_name = BP_Invitation_Manager::get_table_name(); |
| 365 | 364 | $query = $wpdb->prepare( 'SHOW TABLES LIKE %s', $wpdb->esc_like( $table_name ) ); |
| 366 | 365 | if ( ! $wpdb->get_var( $query ) == $table_name ) { |
| 367 | 366 | // Early return if table creation failed. |
diff --git src/bp-core/classes/class-bp-invitation-manager.php src/bp-core/classes/class-bp-invitation-manager.php
index 904fe3e4e..34c1e0c32 100644
|
|
|
abstract class BP_Invitation_Manager { |
| 50 | 50 | * @return string |
| 51 | 51 | */ |
| 52 | 52 | 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; |
| 54 | 63 | } |
| 55 | 64 | |
| 56 | 65 | /** Create ********************************************************************/ |