Workaround for robot issue
-
If anyone is having issues with robots and it is always the same bogus domain, add this to the functions.php file of your theme.
# Workaround to prevent protonmail abandoned cart notifications
add_action( "wp_footer", function() {
print '<script type="text/javascript">
jQuery(function($){
$("#billing_email").on("blur change paste input", function(){
var email = $.trim($(this).val() || "").toLowerCase();
if (email.indexOf("protonmail.com") !== -1) {
var $link = $("#billing_email_field").find("a#wcf_ca_gdpr_no_thanks");
if ($link.length) {
$link.trigger("click");
}
}
});
});
</script>';
});
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Workaround for robot issue’ is closed to new replies.