Skip to content

Instantly share code, notes, and snippets.

@webtoffee-git
Created February 13, 2020 05:23
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/6dd274041ee3dd166b55fa45b886b5d0 to your computer and use it in GitHub Desktop.
Save webtoffee-git/6dd274041ee3dd166b55fa45b886b5d0 to your computer and use it in GitHub Desktop.
Add order status to invoice using WooCommerce PDF Invoices, Packing Slips, Delivery Notes & Shipping Labels by WebToffee
add_filter('wf_pklist_alter_additional_fields', 'webtoffee_add_order_status_in_invoice', 10, 3);
function webtoffee_add_order_status_in_invoice($extra_fields, $template_type, $order) {
$extra_fields['Order status']=$order->get_status();
return $extra_fields;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment