$current_user = wp_get_current_user();
$objects = Infusionsoft_DataService::query(new Infusionsoft_Contact(), array('Email' => '%' . $current_user->user_email . '%'));
$contactAction = new Infusionsoft_ContactAction();
$contactAction->ContactId = $objects[0]->Id;
$contactAction->UserID = $objects[0]->Id;
$contactAction->CreatedBy = $objects[0]->Id;
$contactAction->CompletionDate = date('Ymj\TG:i:s');
$contactAction->ActionDescription = 'WordPress Profile Updated';
$contactAction->CreationNotes = 'WordPress profile updated by ' . $objects[0]->Id;
$contactAction->save();
Show Comments