Viewing 1 replies (of 1 total)
  • Here’s an adjusted function which handles email addresses like the one you describe.

    function WPMailGuard_content_filter($content){
    
    		$pattern = '/mailto:([A-Z0-9\.-]+)@(\w+)\.(\w+)/i';
    			$replacement = '<script>MailGuard(\'${1}\',\'${2}.${3}\')</script>';
    		$content=preg_replace($pattern, $replacement, $content);
    
    		$pattern = '/([A-Z0-9\.-]+)@(\w+)\.(\w+)/i';
    			$replacement = '<script>MailGuard(\'${1}\',\'${2}.${3}\')</script>';
    		$content=preg_replace($pattern, $replacement, $content);
    
    		return $content;
    
    	}
Viewing 1 replies (of 1 total)

The topic ‘[Plugin: WP Email Guard] email with dot not recognized’ is closed to new replies.