Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Ali Qureshi

    (@parorrey)

    Open the json-api-user/controllers/User.php

    Find this:

    if($user_id) $msg = ‘Success’;

    Replace with this:

    if($user_id) {
    
    $msg = 'Success';
    
    $gender = $_REQUEST['gender'];
    update_user_meta($user_id, 'gender', $gender);
    
    }

    You can add as many meta values as you want by copying the update_user_meta($user_id, 'gender', $gender);

    line.

    Thread Starter caio1511

    (@caio1511)

    Thanks, it works like a charm!

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

The topic ‘Registering user w/ metadata’ is closed to new replies.