Skip to content

Instantly share code, notes, and snippets.

@leewillis77
Created April 26, 2021 13:11
Show Gist options
  • Save leewillis77/11d91a814f792828b8c969c3355a303e to your computer and use it in GitHub Desktop.
Save leewillis77/11d91a814f792828b8c969c3355a303e to your computer and use it in GitHub Desktop.
Block emails from cart recovery (wp-cart-recovery.com)
<?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