Woocommerce PDF Vouchers Developer Docs

“Woocommerce PDF Vouchers” Documentation by “WPWeb”

woo_vou_check_vou_buyerinfo_fields

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

The filter accepts three parameters:

  • $buyer_info - an array containing buyer info columns i.e. buyer_name, buyer_email, billing_address, shipping_address, buyer_phone
  • $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 buyer phone is as below:

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