bp_core_set_charset

Get the DB schema to use for BuddyPress components.

Description

(string) bp_core_set_charset(); 

Returns (string)

The default database character-set, if set.


Usage

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

Defined (1)

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

/bp-core/deprecated/2.7.php  
  1. function bp_core_set_charset() { 
  2. global $wpdb; 
  3.  
  4. _deprecated_function( __FUNCTION__, '2.7', 'wpdb::get_charset_collate()' ); 
  5.  
  6. require_once( ABSPATH . 'wp-admin/includes/upgrade.php' ); 
  7. return !empty( $wpdb->charset ) ? "DEFAULT CHARACTER SET {$wpdb->charset}" : '';