Skip to content

Instantly share code, notes, and snippets.

@wpweb101
Last active April 13, 2018 10:13
Show Gist options
  • Select an option

  • Save wpweb101/24c9e8c93dd9604d3dcf752c6dfbb839 to your computer and use it in GitHub Desktop.

Select an option

Save wpweb101/24c9e8c93dd9604d3dcf752c6dfbb839 to your computer and use it in GitHub Desktop.
Change Check Voucher Code Expired Message
<?php
// add filter to change check voucher code expired message
add_filter( 'woo_vou_voucher_code_expired_message', 'woo_vou_voucher_code_expired_message', 10, 4 );
function woo_vou_voucher_code_expired_message( $message, $product_name, $expiry_date, $voucodeid ) {
$message = 'Enetered Voucher Code is expired on '.$expiry_date;
return $message;
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment