' . esc_html__( 'ERROR:', 'simple-cloudflare-turnstile' ) . ' ' . cfturnstile_failed_message() . '

', 'simple-cloudflare-turnstile', array( 'response' => 403, 'back_link' => 1, ) ); } } return $user; } } } // EDD Default Login Check add_filter('cfturnstile_wp_login_checks','cfturnstile_edd_default_login_check'); function cfturnstile_edd_default_login_check() { // Return true if any EDD purchase process has occurred. return ( function_exists( 'did_action' ) && ( did_action( 'edd_purchase' ) || did_action( 'edd_straight_to_gateway' ) || did_action( 'edd_free_download_process' ) ) ); } // EDD Register Check if(get_option('cfturnstile_edd_register')) { add_action('edd_register_form_fields_before_submit','cfturnstile_field_edd_register'); add_action('edd_process_register_form', 'cfturnstile_edd_register_check', 10); function cfturnstile_edd_register_check() { if(!edd_is_checkout()) { $check = cfturnstile_check(); $success = $check['success']; if($success != true) { edd_set_error( 'cfturnstile_error', cfturnstile_failed_message() ); } } } }