Use global tables | WordPress.org

[ad_1]

Right now you are are referencing the buddypress tables like this:

// Activity table.
$activty_table = $wpdb->prefix . ‘bp_activity’;

This is incorrect, as these tables can be moved by filters etc, and infact on muktisite that will always be wrong on any site outside the main one. A far better way is to use the buddypress globals e.g.

global $bp

$bp->activity->table_name

that way you will alway reference the right table. Can you please fix this? I would really like to use yur plugin but right now I cannot

Pete

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer