How to Remove the Trash Button from Wo...
Learn how to easily remove the trash button from your WordPress post list, optimizing...

WPCodeBox
695
Protect your email addresses from spam bots and scrapers by hiding them in your source code. Learn how to hide email addresses using a simple shortcode: [email][email protected][/email]. Prevent unwanted spam and secure your email.
<?php
// WRAP IN SHORTOCDE [email] *** [/email]
add_shortcode( 'email', function($atts, $content = null){
if ( ! is_email( $content ) ) { return $content; }
return '<a href="mailto:' . antispambot( $content ) . '">' . antispambot( $content ) . '</a>';
}
);
?>





