Created
April 14, 2017 12:28
-
-
Save Tomasz-Silpion/d8cfeffaf56b60b22b019bddce13830e to your computer and use it in GitHub Desktop.
Load WooCommerce PDF Invoices & Packing Slips document anywhere
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
require('./wp-load.php'); | |
$wpo_wcpdf = WPO_WCPDF(); | |
$pdf = $wpo_wcpdf->export->get_pdf('invoice', array($order_id)); | |
header("Content-type:application/pdf"); | |
echo $pdf; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment