Woocommerce PDF Vouchers Developer Docs

“Woocommerce PDF Vouchers” Documentation by “WPWeb”

woo_vou_voucher_code_expired_message

This filter can be used to modify expired 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
  • $expiry_Date - a HTML string containing the date on which voucher code was expired
  • $voucodeid - the numerical ID of the voucher code

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