bp_core_get_table_prefix

Get the $wpdb base prefix, run through the 'bp_core_get_table_prefix' filter.

Description

(string) bp_core_get_table_prefix(); 

The filter is intended primarily for use in multinetwork installations.

Returns (string)

Filtered database prefix.


Usage

  1. if ( !function_exists( 'bp_core_get_table_prefix' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/bp-core-functions.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_get_table_prefix(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/bp-core-functions.php  
  1. function bp_core_get_table_prefix() { 
  2. global $wpdb; 
  3.  
  4. /** 
  5. * Filters the $wpdb base prefix. 
  6. * Intended primarily for use in multinetwork installations. 
  7. * @since 1.2.6 
  8. * @param string $base_prefix Base prefix to use. 
  9. */ 
  10. return apply_filters( 'bp_core_get_table_prefix', $wpdb->base_prefix );