Build noteJan 24, 2025
CF7 Quiz Integration
The Forge12 Double Opt-In Plugin (Avada | Elementor | CF7) allows you to integrate external captcha tools through the built-in hooks.
WordPress Captcha Plugin by Forge12
We offer a captcha plugin that effectively protects against bots and spam. You can get it for free in the WordPress plugin store and it is compatible with the Double Opt-In Plugin.
Integration of CF7 Quiz
To use the Double Opt-In Plugin with the Contact Form 7 quiz, you need to integrate the following code. We recommend using the WP Code plugin. Alternatively, you can conveniently add the code to your functions.php.
/**
* Remove CF7 Quiz Validation
*/
add_action('f12_cf7_doubleoptin_before_send_default_mail', 'disable_cf7_quiz_validation');
function disable_cf7_quiz_validation(){
remove_filter( 'wpcf7_validate_quiz', 'wpcf7_quiz_validation_filter', 10, 2 );
}The code temporarily removes the validation for the Contact Form 7 quiz when confirming the opt-in, allowing the opt-in email to be sent.