• I’m so happy that I ran across this plugin before I encountered my latest project. The client just wanted his email address as the contact link and in order to protect him from spam, I remembered that I could install your plugin and do the following:

    // usage [contact_link] in the menu with plugin installed.
    function contact_link_function( $atts ){
        $email = '[email protected]'; // the email goes here
        $output .=  '<a href="mailto:' . antispambot(''. $email .'') . '">CONTACT</a>';   
    
    	return $output;
    }
    add_shortcode( 'contact_link', 'contact_link_function' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gagan Deep Singh

    (@gagan0123)

    carasmo

    Thanks for reviewing the plugin and providing your quite useful code snippet for everyone to use ??

    Thread Starter Christina

    (@carasmo)

    Thanks! I ended up not using it as he wanted a form after all. But still this is a great plugin to know about.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Extremely helpful plugin I was able to add protected email link in menu’ is closed to new replies.