How to remove the "Click to Open in Print View" links that appear under coupons, using a built-in option or a filter.
Option (recommended) #
Coupon Creator Pro has a setting that hides these links everywhere without code. Go to Coupon Creator → Options and enable Hide Print View Link Per Coupon (cctor_pro_hide_print_view_link). This sets the default for the per-coupon Hide Print View Link checkbox (cctor_hide_print_view_link), which hides the "Click to Open in Print View" link under the coupon. The Print View and any custom links still work by clicking the coupon itself.
To hide the link on a single coupon only, edit that coupon and check Hide Print View Link on the Links tab.
Filter #
To force the link off site-wide from code, filter the link attributes and mark the print view as disabled:
add_filter( 'cctor_pro_filter_show_link', function ( $cctor_links, $coupon_id ) {
$cctor_links['disable_print_view_link'] = 1;
return $cctor_links;
}, 10, 2 );
cctor_pro_show_link() skips rendering when disable_print_view_link (or disable_print_view) is truthy, so this removes the "Click to Open in Print View" link from every coupon in the loop.
The related Hide Print Link option (cctor_hide_print_link) removes the print/open links more broadly; the two "Display Names" options (coupon-print-link-name, coupon-click-print-name) only appear when it is enabled.
None of this covers the print button inside the print view. If a Modern Ticket is showing that button twice, see Two "Click to Print" links on a Modern Ticket.
See Print Features and Pro Custom Fields.