Support » Plugins and Hacks » Print Button Shortcode » [Resolved] [Plugin: Print Button Shortcode] How to Use in Template PHP
4 years, 8 months ago
If anyone wants to use this directly in their template PHP code, here’s the code:
<?php echo do_shortcode('[print-button target="div#print_div"]'); ?>
Just swap out the “div#print_div” with the element you want printed.
Note: the element must stay in the double quotes here to work properly. ENJOY!