You just need to add “map_meta_cap” => true
best regards
andreas from moving-bytes.at
Hello Joos,
thanks for your reply.
Sadly the other plugin (PayPal Payments) is terribly broken and we had a lot of customer complains.
thanks anyway.
best
andreas
let me answer my own question:
require_once( ‘wp-load.php’ );
$wpo_wcpdf = new WooCommerce_PDF_Invoices();
$wpo_wcpdf->load_classes();
$pdf = $wpo_wcpdf->export->get_pdf(“packing-slip”, array(“1129”));
file_put_contents( “invoice.pdf”, $pdf);
this works for me.