Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Load WooCommerce PDF Invoices & Packing Slips document anywhere
<?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
You can’t perform that action at this time.