can anyone help with this code?
-
this is to tie my mu/buddy press install into my infusionsoft program, this api plugin with the standard wp – but since mu uses different tables for users, it isnt working – i did change the users to signups here in this code, but ..
this is the code – see, i switched it to signups – but i think the problem is it is calling the field ID, and there is no field ID in the signups table – anyone have suggestions?
$infusion_tag_id_value = get_option( 'tag_id' );
$theuser = $wpdb->get_row("SELECT * FROM {$wpdb->signups} WHERE user_login='{$username}'");
$email = $theuser->user_email;
$wp_user_num_id = $theuser->ID;
$usermeta = $wpdb->get_row("SELECT * FROM {$wpdb->usermeta} WHERE user_id='{$wp_user_num_id}' AND meta_key='wp_user_level'");
$wp_user_level = $usermeta->meta_value;
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘can anyone help with this code?’ is closed to new replies.