REMOVE WEIGHT from Pack & Inv
-
add_action( 'wpo_wcpdf_before_item_meta', 'custom_pdf_styles', 10, 2 );
function custom_pdf_styles( $document_type, $document ) {
?>
<style>
.weight { display: none !important; }
</style>
<?php
}Solution
Place this code in your theme’s functions.php file and weight will be hidden.In the same way, you can hide other information from the invoice PDF or packing slips. To find the class within the plugin, go to templates -> Simple -> and then select the desired template (invoice.php or packing-slip.php). Locate the
add_action
hook (for me, it’swpo_wcpdf_before_item_meta
). Modify the hook according to your requirements, and use it to add extra content or apply custom CSS.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.