Forums

[Plugin: Register Plus] Changing custom fields (2 posts)

  1. realsol
    Member
    Posted 3 years ago #

    I added a new custom field to the registration form (license_id). I can read it using:

    global $userdata;
    get_currentuserinfo();
    $licenseid = get_user_option('license_id',userdata->ID);

    But I can not change it. I am tring:

    $newvalue = $licenseid;
    $option = 'license_id';
    update_user_option($userdata->ID,$option,$newvalue,true);

    but it doesn't seem to store the new value. Any suggestions.

    Thanks.

  2. realsol
    Member
    Posted 3 years ago #

    Anyone....

Topic Closed

This topic has been closed to new replies.

About this Topic