Skip to content

Instantly share code, notes, and snippets.

@ChromeOrange
Created August 9, 2018 13:19
Show Gist options
  • Save ChromeOrange/85372bc96af48bcac875425b89e4b05e to your computer and use it in GitHub Desktop.
Save ChromeOrange/85372bc96af48bcac875425b89e4b05e to your computer and use it in GitHub Desktop.
Filters for PDF Invoice totals section
$output = apply_filters( 'pdf_template_order_subtotal' , $output, $order_id );
$output = apply_filters( 'pdf_template_order_shipping' , $output, $order_id );
$output = apply_filters( 'pdf_template_order_discount' , $output, $order_id );
$output = apply_filters( 'pdf_template_order_tax' , $output, $order_id );
$output = apply_filters( 'pdf_template_order_total' , $output, $order_id );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment