Woocommerce PDF Vouchers Developer Docs

“Woocommerce PDF Vouchers” Documentation by “WPWeb”

woo_vou_check_vou_voucherinfo_fields

This filter can be used to remove voucher info section or add/delete any column in vouher info section on check voucher code page. The filter includes three parameters i.e. $voucher_info, $order_id, $voucher_code.

The filter accepts three parameters:

  • $voucher_info - an array containing voucher info columns i.e. logo, voucher_data and expires
  • $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 voucher expires column is as below:

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