Created
April 26, 2021 13:11
-
-
Save leewillis77/11d91a814f792828b8c969c3355a303e to your computer and use it in GitHub Desktop.
Block emails from cart recovery (wp-cart-recovery.com)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'crfw_should_record_cart', function ( $record_cart, $email, $cart_details ) { | |
$blocked_emails = [ | |
'[email protected]', | |
]; | |
if ( in_array( $email, $blocked_emails, true ) ) { | |
return false; | |
} | |
return $record_cart; | |
}, 10, 3 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment