$s2_custom_fields = get_user_option('wp_s2member_custom_fields', $user_id);
Statistics: Posted by Cristián Lávaque — September 1st, 2011, 11:41 pm
Statistics: Posted by bsowards — September 1st, 2011, 7:27 pm
Statistics: Posted by bsowards — September 1st, 2011, 6:49 pm
$team_member = get_userdata(intval($team_member_id));
$team_member_donations_collected = $team_member->wp_s2member_custom_fields["donations_collected"];
$team_member_donations_collected_update = (int)$team_member_donations_collected + (int)$amount;
//this last line causes an error
update_usermeta( $team_member_id, wp_s2member_custom_fields["donations_collected"], $team_member_donations_collected_update );
Statistics: Posted by bsowards — September 1st, 2011, 6:33 pm