// Определение входных пар для контакта и начального основного местоположения
$params = array(
'first_name' => 'Dan',
'custom_{put your custom filed id here}' => "custom field value1",
'custom_{put your custom filed id here}' => "custom field value2"
);
$contact =&civicrm_contact_create( $params );
print_r($contact);
Таким образом, мы можем вставить значение в пользовательские поля