Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: Weird double query using WPDB


Marcella
Participant

@marcella1981

Thanks guys, upon inspecting a plugin with similar functionality then finding one with the exact functionality came accross this code.
$new_member = new BP_Groups_Member;
$new_member->group_id = $group_id;
$new_member->inviter_id = 0;
$new_member->user_id = $user_id;
$new_member->is_admin = 0;
$new_member->user_title = ”;
$new_member->date_modified = time();
$new_member->is_confirmed = 1;

Which is a good insight of how to use a BP class in the future.

There were no actions being called on the WPDB query, would that be a reason why?

Unrelated note here, wouldn’t it be wise to advise plugin devs who utilise jQuery and default UI theme to rename their CSS class selectors as it always annoyingly clashes.

It’s either that or all theme developers have to rename theirs. A duel *slap :p

Thanks for help

Skip to toolbar