Eneble Double Optin with Divi5 Optin Form
Hi there. I am just creating a Leadgeneration form and because i am too stupid to make good looking Optinforms with FluentForms Pro i decided to use the Divi5 Built in Form. It has a native Integration to FluentCRM.
But i cant make Double Optin work with it. As i see i have to enable DOI in the Forms-App - But the Forms app settings are not used if i use the native DOI Form of Divi5.
Anyone any idea?
I had the same issue, and therefore I used an entry in functions.php of my Divi child theme to act on the tag I selected in the email opt-in module in Divi.
add_action('fluentcrm_contact_added_to_tags', function($tagIds, $subscriber) {
if (in_array(7, $tagIds)) { // the id of the tag you are using
$subscriber->status = 'pending';
$subscriber->source = 'Divi';
}
}, 10, 2);
This, of course, is just my approach. Maybe some smart guy will provide an even better idea or a more elegant approach.