Free WordPress WP Mailto Links – Manage Email Links pluginFree

6 593 websitesFree WordPress WP Mailto Links – Manage Email Links plugin by Victor Villaverde Laan

Protect email addresses and mailto links from spambots and spamming. Easy to use without configuration.


  • Protect mailto links automatically
  • Protect plain email addresses or convert them to mailto links
  • Protect RSS feed
  • Set icon for all mailto links, also supports Font Awesome Icons and Dashicons
  • Shortcode support: [wpml_mailto]
  • Template tag support: wpml_mailto() and wpml_filter()

The plugin combines the best email protection methods (css and javascript techniques).

Easy to use

The WPML plugin works out-of-the-box. After activating the plugin all options are already set for protecting your emails and mailto links. Optionally you can also set some style options, like adding an icon.


Like this plugin?
Rate it to support the development of this plugin.


The WPML plugin works out-of-the-box. All settings are default set to protect your email addresses automatically.
If you want to manually create protected mailto links, just use the shortcode ([wpml_mailto]) within your posts or use the template tags (wpml_mailto() or wpml_filter()) in your theme files.

Shortcode `[wpml_mailto email=”…”]…[/wpml_mailto]`

Create a protected mailto link in your posts:
[wpml_mailto email=””]My Email[/wpml_mailto]

It’s also possible to add attributes to the mailto link, like a target:
[wpml_mailto email=”” target=”_blank”]My Email[/wpml_mailto]

Template tag `wpml_mailto( $email [, $display] [, $attrs] )`

Create a protected mailto link in your template like:

Template tag `wpml_filter( $content )`

Filter given content to protect mailto links, shortcodes and plain emails (according to the settings in admin):

Filter hook (deprecated)

The wpml_mailto filter gives you the possibility to manipulate output of the mailto created by the plugin. F.e. make all mailto links bold:
// define filter function
public function special_mailto($link, $display, $email, $attrs) {
return ”. $link .”;

// hook it to "wpml_mailto" filter
add_filter('wpml_mailto', 'special_mailto', 10, 4);

Now all mailto links will be wrapped around a <b>-tag.

Author: Victor Villaverde Laan

Tags: email, email address, hide, link, mailto

Source from: