Knowledge Base
Add Expired Message to Print Coupons
If you are linking directly to print views of coupons and would like to show a message that a coupon has expired you can use the following snippet to add a message after the coupon is expired instead of showing a blank page.
Add the following coding to a custom plugin or to your child theme’s function.php:
/* * Coupon Creator - Add Expired Message to Print Coupons * Version 2.1.2 */ add_action('cctor_print_no_show_coupon', 'cctor_expired_message' ); function cctor_expired_message() { echo '<h3>Sorry, this coupon has expired.</h3>'; }