Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to use the same BP DB-Tables for two Buddypress installations?!

@philippmuenchen

Participant

I would like to add the following:

function table_prefix_switch() {
global $wpdb;
$options = $wpdb->options; //Save the site 2 options table
$wpdb->set_prefix(‘wp_’); //The prefix to site 1
$wpdb->options = $options; //Put the options table back
}

add_action(‘init’, ‘table_prefix_switch’);

Maybe this could help me to hack it a little bit?!

UPDATE: It’s just using the tables of WordPress – Not of Buddypress! Why?! :(

Skip to toolbar