noptin_obfuscate_email_addresses( string $string )

Obfuscates email addresses in a string.


Parameters Parameters

$string

(string) (Required) possibly containing email address.


Top ↑

Return Return

(string)


Top ↑

Source Source

File: includes/functions.php

function noptin_obfuscate_email_addresses( $string ) {
	return preg_replace_callback( '/([\w\.]{1,4})([\w\.]*)\@(\w{1,2})(\w*)\.(\w+)/', '_noptin_obfuscate_email_addresses_callback', $string );
}

Top ↑

Changelog Changelog

Changelog
VersionDescription
1.1.0Introduced.

Top ↑

User Contributed Notes User Contributed Notes

30 day money back guarantee
Safe & Secure online payment
Custom CSS Slide Example
Custom Animation Example
Default Animation