Conversation
supportI am using Cloudflare Turnstile via AIOS on my WooCommerce site. Turnstile works correctly on the default WooCommerce registration form. However, I am also using the YITH WooCommerce Affiliates plugin, which provides a custom affiliate registration form via shortcode: [yith_wcaf_registration_form]. Issue: Turnstile is not rendered on the YITH affiliate registration form But validation is still triggered on submission This results in a submission error because no Turnstile response exists Is there a way to disable Turnstile validation for specific forms/pages? Or is there a hook/filter to manually inject and validate Turnstile for custom forms? This currently blocks affiliate registration completely.
Hi @flash1433 , AIOS might not show the captcha field for the YITH affiliate registration form. The filter /action to add the captcha YITH affiliate registration hook and action needs to be checked. It might be registration_errors related hook/ filter validating registration. Below is the simple action registration form, with a captcha field. add_action('register_form', array($aio_wp_security->captcha_obj, 'insert_captcha_question_form'); Please try adding code below in the themes function.php, it might show the captcha field. add_action('plugins_loaded', function () { global $aio_wp_security; if (isset($aio_wp_security->captcha_obj)) { add_action( 'yith_wcaf_after_registration_form', array($aio_wp_security->captcha_obj, 'insert_captcha_question_form') ); } }); Regards
Hi @flash1433 , AIOS might not show the captcha field for the YITH affiliate registration form. The filter /action to add the captcha YITH affiliate registration hook and action needs to be checked. It might be registration_errors related hook/ filter validating registration. Below is the simple action registration form, with a captcha field. add_action('register_form', array($aio_wp_security->captcha_obj, 'insert_captcha_question_form'); Please try adding code below in the themes function.php, it might show the captcha field. add_action('plugins_loaded', function () { global $aio_wp_security; if (isset($aio_wp_security->captcha_obj)) { add_action( 'yith_wcaf_after_registration_form', array($aio_wp_security->captcha_obj, 'insert_captcha_question_form') ); } }); Regards