Last active
September 14, 2022 11:18
-
-
Save danielbitzer/7000bd17a72060df3f0d60d0762a71c0 to your computer and use it in GitHub Desktop.
AutomateWoo - Blacklist an email address or multiple emails based on domain
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 | |
// this filter was added in AW 3.6.0 | |
add_filter( 'automatewoo/mailer/blacklist', function( $blacklist ){ | |
$blacklist[] = '[email protected]'; // block a single email | |
$blacklist[] = '@hotmail.com'; // block all emails from a domain | |
return $blacklist; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment