Since: 2.0
save_user
Save a user and it’s meta
Function Definition
public function save_user ( $user_data, $user_meta = null, $strict = false, $sanitized = false )
Source File: /pods/classes/PodsAPI.php
Parameters
Parameter | Type | Details |
---|---|---|
$user_data | (array) | All user data to be saved (using wp_insert_user / wp_update_user) |
$user_meta | (array) | (optional) All meta to be saved (set value to null to delete) |
$strict | (bool) | (optional) Whether to delete previously saved meta not in $user_meta |
$sanitized | (bool) | (optional) Will unsanitize the data, should be passed if the data is sanitized before sending. |
Returns
(int) Returns user id on success