World Council for Curriculum and Instruction (WCCI)

Register New Members 2

‘user_pass’ => $user_pass,
‘user_nicename’ => $user_nicename,
‘user_email’ => $user_email,
‘user_registered’ => $user_registered,
‘user_activation_key’ => $user_activation_key,
‘user_status’ => $user_status,
‘display_name’ => $display_name,
‘user_url’ => $user_url);

$user_id = wp_insert_user($userdata);//insert

//create the user..
//$gen_password = wp_generate_password($length=12, $include_standard_special_chars=false);
//$user_id = wp_create_user($user_email, $gen_password, $user_email);

if(is_wp_error($user_id)){/*There was an error, probably that user doesn’t exist.*/?>

There was an error, probably that user doesn’t exist.

Please repeat the process.

‘user_login’ => $user_login,
‘user_nicename’ => $user_nicename,
‘user_email’ => $user_email,
‘user_registered’ => $user_registered,
‘user_activation_key’ => $user_activation_key,
‘user_status’ => $user_status,
‘display_name’ => $display_name,
‘user_url’ => $user_url,
‘birthday’ => $birthday,
‘blog’ => $blog,
‘find_account_answer’ => $find_account_answer,
‘find_account_question’ => $find_account_question));

//Set the role
$user = new WP_User($user_id);
//Email the user
//wp_mail($user_email, ‘Welcome ‘.$user_login.’! Thanks for registering. ‘, ‘Your generated password is: ‘ . $gen_password);

//update custom clause
$QRY_update = “UPDATE wp_users
user_login = ‘”.$user_login.”‘,
birthday = ‘”.$birthday.”‘,
blog = ‘”.$blog.”‘,
find_account_answer = ‘”.$find_account_answer.”‘,
find_account_question = ‘”.$find_account_question.”‘,
affiliation = ‘”.$affiliation.”‘,
address = ‘”.$address.”‘,
city = ‘”.$city.”‘,
state = ‘”.$state.”‘,
zip = ‘”.$zip.”‘,
country = ‘”.$country.”‘,
telephone = ‘”.$telephone.”‘,
fax = ‘”.$fax.”‘,
gender = ‘”.$gender.”‘,
retired = ‘”.$retired.”‘,
dues = ‘”.$dues.”‘,
duesdeveloping = ‘”.$duesdeveloping.”‘,
dept = ‘”.$dept.”‘,
proftitle = ‘”.$proftitle.”‘,
field = ‘”.$field.”‘,
interestgrp = ‘”.$interestgrp.”‘,
allow_mailing = ‘”.$allow_mailing.”‘,
allow_message = ‘”.$allow_message.”‘
WHERE ID = ‘”.$user_id.”‘”;

$RESULT = $con->DDL_executeQry($QRY_update); //execute the query

//Email the user
wp_mail($user_email, “Welcome “.$display_name.”! Thanks for registering.”, “You are now registered to the site. To activate your account, visit the link below.\r\n\r\n\r\n\r\nThank You very much!\r\n\r\n-WCCI Administration”);

wp_mail(‘’, “New User Registration on WCCI by “.$display_name, “New user has registered to the site!\r\n\r\nTime and Date: “.$user_registered.”\r\n\r\nUser ID: “.$user_login.”\r\nEmail Address: “.$user_email.”\r\nFull Name: “.$display_name.”\r\nNick Name: “.$user_nicename.”\r\nQuestion for temporary password: “.$find_account_question.”\r\nAnswer to the question: “.$find_account_answer.”\r\nHomepage: “.$user_url.”\r\nBlog: “.$blog.”\r\nBirthday: “.$birthday.”\r\nEducation Institution/Affiliation: “.$affiliation.”\r\nMailing Address: “.$address.”\r\nCity/Town: “.$city.”\r\nState/Province: “.$state.”\r\nZip / Postal Code: “.$zip.”\r\nCountry: “.$country.”\r\nTelephone with Area Code: “.$telephone.”\r\nFAX with Area Code: “.$fax.”\r\nGender: “.$gender.”\r\nRetired: “.$retired.”\r\nDues Schedule: “.$dues.”\r\nMembership from Developing Countries: “.$duesdeveloping.”\r\nDepartment/Division/Unit: “.$dept.”\r\nProfessional Title: “.$proftitle.”\r\nSpecialization/Content Field: “.$field.”\r\nSpecial Interest Group: “.$interestgrp.”\r\nJoin Mailing: “.$allow_mailing.”\r\nAllow Messages: “.$allow_message.”\r\nActivate User:”.$user_id.”\r\n”);

Registration Successful!

An email has been sent to you for confirmation.

User Already Exists

Please provide a new email address.

Registration Successful!

A confirmation email has been sent to your email. You can now login to the site.


New Member – Sign Up

  (the password must be at least 6, and must have at least one alpha character and numeric characters)

   Student Membership requires evidence enrollment.

Student Membership requires evidence of enrollment.

(e.g., Social Studies, Math , Global Education, Peace Studies, etc.)

(e.g., Early Childhood, Technology, etc.)

Join Mailing

Allow Messages

You are currently logged in.

Please go to My Accounts page to modify your account.