Added a shortcode
-
Hi guys, great plugin.
I started using this plugin this week and noticed there is not a shortcode for it.
Here is the code for it if someone else need:
* Insert this code on your functions.php and use [setprintbuttons] as you like.* See an example on any post here: http://en.fatorbinario.com
//Shortcode for BWS PDF & Print
function SetPrintButtonsShortcode() {
$printer_icon = ‘<img src=”/wp-content/plugins/pdf-print/images/print.gif” alt=”Print”>‘;
$pdf_icon = ‘<img src=”/wp-content/plugins/pdf-print/images/pdf.png” alt=”PDF”>‘;return $pdf_icon . ” ” . $printer_icon;
}
add_shortcode(‘setprintbuttons’, ‘SetPrintButtonsShortcode’);
The topic ‘Added a shortcode’ is closed to new replies.