Last active
April 17, 2024 11:24
-
-
Save webtoffee-git/d60a0694cc8c03cf8922a5d642f3d2ac to your computer and use it in GitHub Desktop.
Code to add border to the invoice pdf - By WebToffee ( WooCommerce PDF Invoice, Packing Slips, Delivery Notes and Shipping labels )
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //Do not copy this line of code | |
add_filter('wf_pklist_add_custom_css','wt_pklist_alter_border_style',10,2); | |
function wt_pklist_alter_border_style($custom_css,$template_type) | |
{ | |
if( 'invoice' === $template_type ) | |
{ | |
$custom_css.='body{ margin:30px !important; border:1px solid #000; }'; | |
} | |
return $custom_css; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment