Created
May 10, 2013 12:52
-
-
Save chrisrouse/5554226 to your computer and use it in GitHub Desktop.
To use this shortcode just add the following where you want the link to appear in your posts. [email][email protected][/email]
This file contains 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
// 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