/* Add field_name from sign-up to usermeta on activation */
function setMeta($user_id, $password, $meta)
{
global $wpdb;
$signup_tbl = $wpdb->prefix.”signups”;
$users_tbl = $wpdb->prefix.”users”;
//Query to get the custom field store in the signup table here I have set it to expertise
$metadata = $wpdb->get_var(“SELECT meta FROM “.$signup_tbl.” WHERE user_login=(SELECT user_login FROM $users_tbl WHERE ID=”.$user_id.”)”);