Hello, I am using WooCommerce PDF Invoices & Packing Slips this plugin and want to change size of paper … I added this filter in my function.php but no change in paper size.
add_filter( ‘wpo_wcpdf_paper_format’, ‘wcpdf_custom_mm_page_size’, 10, 2 );
function wcpdf_custom_mm_page_size($paper_format, $template_type) {
// change the values below
$width = 150; //mm!
$height = 300; //mm!
//convert mm to points
$paper_format = array( 0, 0, ($width/25.4) * 72, ($height/25.4) * 72 );
return $paper_format;
}