Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Last active April 17, 2024 11:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save webtoffee-git/d60a0694cc8c03cf8922a5d642f3d2ac to your computer and use it in GitHub Desktop.
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 )
<?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