Last active
December 19, 2015 03:39
-
-
Save wpspeak/5892157 to your computer and use it in GitHub Desktop.
Anti Spam Mailto Links by Preventing Mail Scrapper Collecting the email
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Anti Spam Mailto Links | |
function email_encode_function($atts, $content){ | |
return '<a href="'.antispambot($content).'">'.antispambot($content).'</a>'; | |
} | |
add_shortcode('email', 'email_encode_function'); | |
// Use shortcode [email][email protected][/email] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment