Support » Plugin: Print, PDF, Email by PrintFriendly » [Plugin: Print Friendly and PDF Button] shortcode

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Contributor jrf

    (@jrf)

    Of course, just add the following code to your theme’s functions.php file:

    /**
     * Shortcode for printfriendly buttons
     */
    add_shortcode('pf_button', 'get_printfriendly_button');
    function get_printfriendly_button() {
    	if( function_exists('pf_show_link') ){
    		return pf_show_link();
    	}
    }

    Hope this helps!

    Smile,
    Juliette

    Excellent, thanks Juliette. Just one thing – what is the shortcode?

    Plugin Contributor jrf

    (@jrf)

    The first argument in the add_shortcode line, i.e.: ‘pf_button’

    Plugin Contributor jrf

    (@jrf)

    FYI: the second argument is the name of the function to call, i.e. the function we created.

    Thank you very kind

    Plugin Author Print & PDF by PrintFriendly

    (@printfriendly)

    Thanks for helping out @jrf 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Print Friendly and PDF Button] shortcode’ is closed to new replies.