Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,871
- Creating & Extending
- 25,903
- Requests & Feedback
- 9,548
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,178
-
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?! 