Viewing 4 replies - 1 through 4 (of 4 total)
  • what custom user meta specifically did you add? The error most likely sits in the code you added…

    Thread Starter crazyboy

    (@crazyboy)

    function custom_user_register($user_id) {
    $userdata = array();
    $userdata[‘ID’] = $user_id;
    if ($_POST[‘pass2’] !== ”) {
    $userdata[‘user_pass’] = $_POST[‘pass2’];
    }
    wp_update_user($userdata);
    if (!empty($_POST[‘phone’])) {
    update_user_meta($user_id,’phone’,trim($_POST[‘phone’]));
    }
    if (!empty($_POST[‘bank’])) {
    update_user_meta($user_id,’bank’,trim($_POST[‘bank’]));
    }
    if (!empty($_POST[‘account_no’])) {
    update_user_meta($user_id,’account_no’,trim($_POST[‘account_no’]));
    }
    if (!empty($_POST[‘account_name’])) {
    update_user_meta($user_id,’account_name’,trim($_POST[‘account_name’]));
    }
    }

    You might want to have (another) look at this Codex entry.

    Thread Starter crazyboy

    (@crazyboy)

    that’s exactly what i do
    it’s works fine in 4.6.x version but crash in 4.7.x version

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘error with registration’ is closed to new replies.