Quantcast
Channel: Web services
Viewing all articles
Browse latest Browse all 2361

Re: core_user_create_users and core_user_update_users are missing some core fields

$
0
0

by Dorel Manolescu.  

@biboy atienza

Looking in the code there is support for custom fields in the web-service:

###

// Custom fields.
if (!empty($user['customfields'])) {
foreach ($user['customfields'] as $customfield) {
// Profile_save_data() saves profile file it's expecting a user with the correct id,
// and custom field to be named profile_field_"shortname".
$user["profile_field_".$customfield['type']] = $customfield['value'];
}
profile_save_data((object) $user);
}

###

Just check that you have the correct syntax there. Please find attached a screen-shot with a postman request.

Any other questions let us know.

Regards




Viewing all articles
Browse latest Browse all 2361

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>