// Hide email address from the markup on your site. // use by putting each email address in shortcode: [email]dude@example.com[/email] function encode_email_shortcode($atts, $content = null) { for ($i = 0; $i < strlen($content); $i++) $encodedmail .= "&#" . ord($content[$i]) . ';'; return '<a class="encoded-email" href="mailto:' . $encodedmail . '">' . $encodedmail . '</a>'; } add_shortcode('email', 'encode_email_shortcode');