update_user_meta
-
I read one post where you replied as:
To add additional field with update meta keyIn controller/user.php file
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.
Please let me know where have to make this to add addional custom fields
Thanks
- The topic ‘update_user_meta’ is closed to new replies.