[ad_1]
Hi,
I want to remove SKU and weight from invoices. I tried this:
add_action( 'wpo_wcpdf_custom_styles', 'wpo_wcpdf_custom_styles', 10, 2 );
function wpo_wcpdf_custom_styles ( $document_type, $document ) {
if ($document_type == 'invoice'){
?>
.product .meta .sku .weight {
display: none !important;
}
<?php
}
}based on previous posts didn’t get it to work. I used code snippets to enter the code and selected “run snippet everywhere”.
Probably I am writing something wrong in this code but I am not familiar with php. Can you help me please?
