Woocommerce PDF Vouchers Developer Docs

“Woocommerce PDF Vouchers” Documentation by “WPWeb”

woo_vou_voucher_code_used_message

This filter can be used to modify used voucher code message on check voucher code page.

The filter accepts four parameters:

  • $message - a HTML string containing the invalid voucher code message
  • $product_name - a HTML string containing the product name from which code was generated
  • $used_code_date - a HTML string containing the date on which voucher code was used
  • $voucodeid - the numerical ID of the voucher code

An example of how you can add custom used voucher code message is as below: