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;
}
Became a Cardinal
International free agent signed on May 30, 2018. Released on August 3, 2023.
Awards
The Cardinal Nation Top Prospect – 2021 #49, 2020 #36
The Cardinal Nation Peoria Chiefs Relief Pitcher of the Year – 2019
Midwest League mid-season All-Star – 2019
The Cardinal Nation Gulf Coast League Cardinals Relief Pitcher of the Year – 2018
Gulf Coast League All-Star – 2018