Woocommerce PDF Vouchers Developer Docs

“Woocommerce PDF Vouchers” Documentation by “WPWeb”

woo_vou_check_vou_orderinfo_fields

This filter can be used to remove order info section or add/delete any column in order info section on check voucher code page.

The filter accepts three parameters:

  • $order_info - an array containing order info columns i.e. order_id, order_date, payment_method, order_total, order_discount
  • $order_id - the numerical ID of the order, to which voucher code belongs
  • $voucher_code - an HTML string containing the voucher code

An example of how you can remove payment method is as below:

An example of how you can completely remove order information section is as below: