How the expiration date displays on image coupons — and how to hide it if the date is already part of your graphic.
Since the 3.6 release, image coupons render the expiration line by default. The expiration date field (cctor_default_expiration) is registered for both the default and image templates, so an image coupon with an expiration set shows the expiration block (.cctor-expiration) beneath the image — on the page, in the print view, and in the Pro/Add-ons type views — using the coupon's configured expiration option and any custom "Expires on" / "Valid … thru …" text from Coupon Creator → Options.
The line only appears when the coupon actually has an expiration date (option not set to Never Expire), so nothing changes for evergreen image coupons.
Hiding it #
If your graphic already includes the date and you don't want the extra line, remove image from the field's template list:
add_filter( 'cctor_filter_meta_template_fields', function ( $fields ) {
if ( isset( $fields['cctor_default_expiration'] ) ) {
$fields['cctor_default_expiration']['template'] = array_diff(
(array) $fields['cctor_default_expiration']['template'],
array( 'image' )
);
}
return $fields;
}, 20 );
Keep in mind the plugin still uses the expiration date to decide when the coupon stops displaying — hiding the line doesn't disable expiration, so keep the date in your graphic in sync with the field.
The Print Only field (cctor_print_only) is also registered for image coupons, so print-only content shows on image coupons as well. See Creating a Pro Image Coupon, Pro Custom Fields, and Pro CSS Reference.