fbpx
  • Best Drag & Drop Website Builder
  • Build Any Type of Website
  • Unlimited design flexibility
  • Drag & Drop Builder

New Feature: Earn 12 Badges

Bild

Collect up to 12 exclusive badges by sharing your plugin collections and engaging with the community.

See all Badges
Email Obfuscate Shortcode

by khromov

Description
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.
Requirements
PHP 5.3 or higher
mbstring extension
Translations
Swedish
TODO
Better noscript_fallback. Enable people without JavaScript to see the email address using technique to inject empty spans via css.
(Example: bob@randomtextcompany.com
Reference: https://wordpress.org/extend/plugins/obfuscate-email/other_notes/

All texts and images on this product page are protected by copyright and are the property of the author khromov. You will be redirected to the retailer to download the plugin. We act solely as a search engine for plugins and are not affiliated with the retailer or khromov.

Tags

Free Plugin

4.5
Reviews
Last Update
8 years ago
All trademarks, logos and brand names are the property of their respective owners. All company, product and service names used in this website are for identification purposes only. The WordPress® trademark is the intellectual property of the WordPress Foundation

Get your first Badge

Code Newbie

Earn your first badge by sharing your collections. Every master was once a beginner. Welcome to your coding journey.

0 of 5 views reached

Collections

Create your first Collection

Click the symbol on the desired plugin to create a collection. The symbol appears when you hover over the plugin.