Woocommerce PDF Vouchers Developer Docs

“Woocommerce PDF Vouchers” Documentation by “WPWeb”

woo_vou_voucher_code_valid_message

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

The filter accepts three 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
  • $voucodeid - the numerical ID of the voucher code

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