This function has been deprecated. BuddyPress 2.7.0 instead.

bp_core_set_charset()

Get the DB schema to use for BuddyPress components.

Description

Return

(string) The default database character-set, if set.

Source

File: bp-core/deprecated/buddypress/2.7.php

function bp_core_set_charset() {
	global $wpdb;

	_deprecated_function( __FUNCTION__, '2.7', 'wpdb::get_charset_collate()' );

	require_once( ABSPATH . 'wp-admin/includes/upgrade.php' );
	return !empty( $wpdb->charset ) ? "DEFAULT CHARACTER SET {$wpdb->charset}" : '';
}

Changelog

Changelog
Version Description
BuddyPress 2.7.0 BuddyPress 2.7.0
BuddyPress 1.1.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.