Woocommerce PDF Vouchers Developer Docs

“Woocommerce PDF Vouchers” Documentation by “WPWeb”

woo_vou_check_vou_productinfo_fields

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

The filter accepts three parameters:

  • $product_info - an array containing product info columns i.e. product name and voucher price
  • $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 price is as below:

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