Sendinblue – Update contact if exists
-
In the sendinblue integration, sometimes existing newsletter subscribers re-subscribe (because they are not sure if they are on the list, or because they have subscribed to a different list before). In this case, CF7 currently rejects the contact with a message saying
PHP Notice: HTTP Response: 400 Bad Request {“code”:”duplicate_parameter”,”message”:”Contact already exist”}
I realized, this behavior can be changed easily via this filter:
add_filter(‘wpcf7_sendinblue_contact_parameters’, function($params) {
$params[‘updateEnabled’] = true;
return $params;
});Can you add it to the sendinblue documentation, please?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Sendinblue – Update contact if exists’ is closed to new replies.