Thanks for the cool plugin. Please help me for this small problem.
I have created a custom registration page template.
I have used wordpress wp_create_user

Here is a snippet :
- Code: Select all
$myuser_id = wp_create_user( $uname, $password, $remail );
update_user_meta( $myuser_id, 'first_name', $fname);
update_user_meta( $myuser_id, 'last_name', $lname);
update_user_meta( $myuser_id, 'city', $city);
update_user_meta( $myuser_id, 'gender', $gender);
update_user_meta( $myuser_id, 'age', $age);
Requirements OF membership :
1.free member
2. Paid member
A user can be a paid member only after he registers as a free member.
So , now my doubts

1. if i set open register to yes, What will be the default user_role

2. if a user registers as a free member and later pays through a generated paypal member button, will his userrole change to the required one automatically?
Waiting for reply from an expert.....
