WordPress.org

Ready to get started?Download WordPress

Plugin Directory

Email Obfuscate Shortcode

Obfuscate your email address or other sensitive information with a shortcode to prevent spam and automated harvesting of data.

Obfuscate your email address or other sensitive information with a shortcode to prevent harvesting of your data.

Version 2.0 includes an improved way of displaying the email without relying on JavaScript document.write();

Usage

Basic usage

[email-obfuscate email="bob@example.com"]

Setting custom link text

[email-obfuscate email="bob@example.com" link_title="Email Bob!"]

*Setting custom link title attribute"

[email-obfuscate email="bob@example.com" tag_title="Email Bob!"]

Using every available setting (this example shows their default values)

[email-obfuscate email="bob@example.com" linkable="1" link_title="" use_htmlentities="1" use_noscript_fallback="1" noscript_message="Please enable JavaScript to see this field."]

Usage from a template or plugin

Below is a snippet that you can use in any template or plugin to apply the same obfuscation to an email as using the shortcode:

if(function_exists('eos_obfuscate')) { echo eos_obfuscate(array('email' => $email, 'link_title' => 'Email Bob!')); } else { echo $email; }

If the plugin is not enabled, the email address will just pass through and output in cleartext.

Requires: 3.0 or higher
Compatible up to: 3.9
Last Updated: 2014-4-16
Downloads: 2,929

Ratings

4 stars
4.4 out of 5 stars

Support

Got something to say? Need help?

Compatibility

+
=
Not enough data

0 people say it works.
0 people say it's broken.

100,1,1 100,1,1 100,1,1
33,3,1 100,1,1
100,2,2 100,2,2
100,1,1
100,1,1
100,1,1