add_filter( 'registration_errors', 'tml_block_spam_domains', 10, 3 );
function tml_block_spam_domains( $errors, $sanitized_user_login, $user_email ) {
// List the specific spam domains you want to block (lowercase only)
$blocked_domains = array(
'cleargarden.net',
'morningtrail.net',
'valenrisa.com',
'fmailler.net',
'fmaillerbox.net',
'fmaillerbox.com',
'bravonest.com',
'greengardenpath.net',
'telarino.com' // Add any additional spam domains here
);
// Extract the domain from the submitted email address
$email_parts = explode( '@', $user_email );
$domain = end( $email_parts );
// Check if the domain is in the blacklist
if ( in_array( strtolower( $domain ), $blocked_domains ) ) {
$errors->add( 'email_domain_blocked', __( 'ERROR: Registrations from this email provider are not allowed.' ) );
}
return $errors;
}I – The Cardinal Nation
https://thecardinalnation.com
First-hand news and commentary on the St. Louis Cardinals™ and minor league system for over 25 yearsWed, 07 May 2025 17:24:22 +0000en-US
hourly
1 https://wordpress.org/?v=7.0.8https://thecardinalnation.com/wp-content/uploads/cropped-TCN-gravatar-copy-125-32x32.jpgI – The Cardinal Nation
https://thecardinalnation.com
3232St. Louis 2025 Game #40 thread – Saturday, May 10 at Washington Nationals
https://thecardinalnation.com/forums/topic/st-louis-2025-game-40-thread-saturday-may-10-at-washington-nationals/?utm_source=rss&utm_medium=rss&utm_campaign=st-louis-2025-game-40-thread-saturday-may-10-at-washington-nationals
Wed, 07 May 2025 17:24:22 +0000https://thecardinalnation.com/forums/topic/st-louis-2025-game-40-thread-saturday-may-10-at-washington-nationals/