WordPress.org

Ready to get started?Download WordPress

Plugin Directory

!This plugin hasn't been updated in over 2 years. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

Email Protect

Automatically protects email address in posts, pages, and comments by converting them into safe alternatives (such as an images or obfuscated text) to

Template Usage:

Email addresses are automatically obfuscated in posts, pages, and comments. You can chose the obfuscation method (text or image) under the "Settings" menu. Email addresses in comments are always obfuscated using the text method.

To obfuscate an email address directly in a template file, enter a PHP code that mimicks the following style:

The $email variable holds your email address and the $type is an optional variable that can either be "text" or "image" depending on the type of obfuscation you want. If you don't specify a type the default setting in the options menu is used. For example, if your email address is myemail@example.com and you want it converted into an image, you would enter the following into your theme's template file:

If you wanted text obfuscation, simply change "image" to "text." It is important to remember the single quotes around both the email address and the type in the above function. The function above is designed so that if you deactivate the plugin it will not break your theme.

Requires: 2.3 or higher
Compatible up to: 2.5.1
Last Updated: 2008-7-1
Downloads: 4,022

Ratings

3 stars
3.3 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.

0,1,0
67,3,2
100,4,4
100,1,1
100,1,1
0,1,0