Statistics: Posted by Sayhellotoryan — August 11th, 2011, 4:08 pm
Statistics: Posted by go4sachin007 — March 4th, 2011, 7:38 am
if(ws_plugin__s2member_check_register_access()){
// display form
}
Statistics: Posted by Jason Caldwell — September 29th, 2010, 2:24 pm
Statistics: Posted by geekz — September 13th, 2010, 10:52 am
Statistics: Posted by geekz — September 12th, 2010, 5:13 pm
1. if i set open register to yes, What will be the default user_role and how can i assign it dynamically in the form.
$new_user_id = wp_create_user( $uname, $password, $remail );
$new_user = new WP_User($new_user_id);
$new_user->set_role("s2member_level1");
administrator
editor
author
contributor
subscriber
s2member_level1
s2member_level2
s2member_level3
s2member_level4
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?
Statistics: Posted by Jason Caldwell — September 9th, 2010, 10:48 pm
$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);
Statistics: Posted by geekz — September 9th, 2010, 4:13 pm