• Skip to primary navigation
  • Skip to main content

Artifex Routing Co

  • Plugins
  • Docs
  • Support
  • About
  • My Account
Coupon Creator mark COUPON CREATOR By Artifex Routing Co
OVERVIEW DEMOS PRO ADD-ONS COMPARE PRICING FAQ GET PRO
  • Can I change the print-view URL?
  • Can I combine an image and text in one coupon?
  • Can I display a coupon in a sidebar or widget?
  • Can I track the print view in Google Analytics?
  • How do I keep coupons out of site search?
  • How do I run custom code snippets safely?
  • How do I turn on automatic paragraphs (wpautop)?
  • What are Coupon Creator’s system requirements?
  • What size should my image coupon be?
  • Where does the shortcode go?
  • Which add-ons require Coupon Creator Pro?
  • Will I lose my coupons if I deactivate the plugin?
  • Advanced Templates
  • Click Reveal
  • Coupon Categories
  • Coupon Loop & Filter Bar
  • Coupon Options & Defaults
  • Creating a Coupon
  • Creating a Pro Coupon
  • Creating an Image Coupon
  • Customizing Coupons
  • Displaying Coupons
  • Dynamic Code
  • Email Delivery
  • Email Gate
  • Expiration & Recurring Expiration
  • Expiration Dates
  • Expiration Display
  • Getting Started with Coupon Creator
  • Installing & Activating Add-ons
  • Installing & Activating Pro
  • Locations & Vendors
  • MultiPrint
  • Print Features
  • Printing Coupons
  • Pro Options, Tab by Tab
  • Pro Styling & Image Coupons
  • The Coupon Counter
  • Troubleshooting 404 Errors
  • Troubleshooting 404 Errors
  • Troubleshooting 404 Errors
  • Troubleshooting Conflicts
  • Troubleshooting Conflicts
  • Troubleshooting Conflicts
  • Troubleshooting JavaScript Errors
  • Troubleshooting JavaScript Errors
  • Troubleshooting JavaScript Errors
  • WooCommerce Coupons
  • An update is out but my site is not showing it
  • How do I increase the WordPress memory limit?
  • How do I turn on WordPress debug mode?
  • My coupon was working but stopped displaying
  • My recurring expiration isn’t updating — how do I fix it?
  • The inserter, uploader, or date/color pickers aren’t working
  • Two “Click to Print” Links on a Modern Ticket
  • What information does the Site Health section show?
  • Why isn’t my Email Gate working?
  • Actions & Filters
  • Add an Expired Message to the Print View
  • Add Google Fonts to the Print View
  • Coupon Capabilities
  • Coupon Custom Fields (Post Meta)
  • Coupon Post Type & Taxonomy
  • Coupon Shortcode Reference
  • CSS Reference
  • Customizing the Counter
  • Disable the Colorbox Script
  • Email settings reference
  • Filter the Recurring Limit
  • Filter the Shortcode Query
  • Hide or Change the Dashed Border
  • Logged-In User Snippets
  • Pro Conditionals
  • Pro CSS Reference
  • Pro Custom Fields
  • Remove Print View Links
  • Terms Field Formatting
  • The Expiration Date on Image Coupons
  • Themer’s Guide
  • Translate or Change Text
  • A new version is out — why doesn’t my Plugins screen show it?
  • Does Coupon Creator Pro stop working when my license expires?
  • How do I activate my Coupon Creator Add-ons license?
  • How do I activate my license for Pro or add-ons?
  • How do I install Pro manually (upload, FTP, or cPanel)?
  • How do I manually update or downgrade the plugin?
  • How do I renew my license?
  • How do I transfer my license to another site?
  • How do I upgrade my license to more sites?
  • What does the license include?
  • What support can I expect?
  • Where do I add my license key?
  • Where do I find my license key?
  • Can I upgrade my license to a higher tier?
  • Do I need the free Coupon Creator plugin to run Pro?
  • Does Coupon Creator Pro support WordPress Multisite?
  • What payment methods do you accept?
  • What version of Coupon Creator do I need for Pro?
  • Is Coupon Creator GDPR compliant?
  • What languages does Coupon Creator support?
  • What software license does the plugin use?
  • What usage data does Coupon Creator collect?
  • Which browsers are supported?
  • Coupon Creator 3.6.2 — August 9th 2026
  • Coupon Creator 3.6.1 — August 7th 2026
  • Coupon Creator 3.6.0 — August 6th 2026
  • Coupon Creator Changelog
  • Coupon Creator Pro Changelog
  • Coupon Creator Add-ons Changelog
View Categories
  • Home
  • Docs
  • Coupon Creator
  • Actions & Filters

Actions & Filters

3 min read

The hooks Coupon Creator fires while rendering the shortcode view, the print view, and the admin screens, so you can add, remove, or alter output.

Coupon output is assembled entirely from hooks: a builder function (cctor_shortcode_functions for the shortcode, cctor_print_template for print) attaches the default callbacks, then the template fires the actions below. To customize, unhook a default callback and add your own on the same action, or hook the empty extension points. See themers-guide for the pattern.

Shortcode template — actions #

Action Params Fires
cctor_shortcode_start — Before the shortcode output buffer
cctor_before_coupon_wrap — Before the coupon loop
cctor_before_coupon $coupon_id Per coupon, before its wrapper (also runs the builder)
cctor_before_coupon_inner_wrap $coupon_id Inside the outer wrap
cctor_img_coupon $coupon_id, $couponimage, $bordertheme Renders an image coupon
cctor_coupon_deal $coupon_id Renders the deal heading
cctor_coupon_terms $coupon_id Renders the terms
cctor_coupon_expiration $coupon_id, $coupon_expiration Renders the expiration line
cctor_coupon_link $coupon_id Renders the "Click to Open in Print View" link
cctor_no_show_coupon $coupon_id, $coupon_expiration, $coupon_align When a coupon is hidden/expired
cctor_after_coupon $coupon_id Per coupon, after its wrapper
cctor_shortcode_end — After the output buffer
cctor_shortcode_template_functions — Builder hook — add your shortcode callbacks here

Shortcode template — filters #

Filter Params Returns
cctor_default_totalcoupons $default (50) Cap for a bare [coupon] with no totalcoupons
cctor_shortcode_query_args $args The WP_Query args (see filter-shortcode-query)
cctor_shortcode_query_args_{filterid} $args Same, scoped to a shortcode's filterid
cctor_outer_content_wrap $coupon_id, $coupon_align, $bordertheme start_wrap/end_wrap markup array
cctor_inner_content_wrap $coupon_id, $bordertheme Inner wrap markup array
cctor_image_url $coupon_id, 'single_coupon' Image-coupon URL
cctor_deal_inline_style $style, $coupon_id The deal element's inline style value. Return '' to drop it — token-driven templates do this so the stylesheet wins
cctor_coupon_tokens $tokens, $coupon_id Map of CSS custom property to value set on the coupon container (see css-reference)
cctor_contrast_ink $ink, $background, $luminance The automatically chosen black/white text color for a given background
cctor_coupon_template_paths $paths Base paths searched for src/views/type/{type}.php templates

Print template — actions #

Action Params Fires
cctor_action_print_template $coupon_id Top of the print page (runs the print builder)
coupon_print_meta — Inside <head> — meta, base CSS, stylesheets
coupon_print_head — Inside <head>, after meta (used for inline CSS)
cctor_print_before_coupon $coupon_id Before the coupon
cctor_print_image_coupon $coupon_id, $couponimage Renders an image coupon
cctor_print_coupon_deal $coupon_id Renders the deal
cctor_print_coupon_terms $coupon_id Renders the terms
cctor_print_coupon_expiration $coupon_id, $coupon_expiration Renders the expiration
cctor_click_to_print_coupon $coupon_id Renders the "Click to Print" button
cctor_print_no_show_coupon $coupon_id, $coupon_expiration When a coupon is hidden/expired (see expired-message-print-view)
cctor_print_after_coupon $coupon_id After the coupon
coupon_footer — Before </body>
cctor_print_template_functions — Builder hook — add your print callbacks here

Print template — filters #

Filter Params Returns
cctor_print_outer_content_wrap $coupon_id Outer wrap markup array
cctor_print_inner_content_wrap $coupon_id Inner wrap markup array
cctor_print_image_url $coupon_id, 'print_coupon' Image URL
cctor_filter_inline_css $css Extra CSS injected into both front-end and print views

Admin — actions #

Action Params Fires
cctor_add_meta_box $post When the coupon meta box is registered
pngx_meta_message $post Above the meta box
cctor_admin_assets — After admin scripts/styles enqueue
cctor_activate — On plugin activation
cctor_deactivate — On plugin deactivation

Admin — filters #

Filter Params Alters
cctor_filter_meta_tabs $tabs Meta box tabs
cctor_filter_meta_fields $fields All meta fields
cctor_filter_meta_template_fields $fields Template (content) meta fields
cctor_filter_coupon_list_columns $columns, $wp_columns Coupon list columns
cctor_filter_column_cases $column, $post_id, $coupon_expiration Column cell content
cctor_option_sections $sections Options-page sections
cctor_option_filter $fields Options-page fields
cctor_inserter_total_coupons $total (50) How many coupons the classic-editor Add Coupon inserter lists

Query & general #

Hook Type Params
cctor_coupon_parse_query action $query
cctor_filter_ignore_expiration filter $show, $coupon_id
cctor_filter_meta_show_coupon_check filter $hidden, $coupon_id
cctor_filter_searchable_post_types filter $post_types
cctor_img_size filter $sizes (single 300 / print 390)
cctor_is_coupon filter $bool, $post_id
cctor_coupon_slug / cctor_category_slug filter URL bases
cctor_coupon_label_singular (+ _plural, _lowercase, category variants) filter Post-type labels — see translate-or-change-text
coupon_creator_plugin_loaded action Fired once the plugin is ready
Updated on August 8, 2026
FAQ Reference

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
CSS ReferenceCoupon Post Type & Taxonomy
Table of Contents
  • Shortcode template — actions
  • Shortcode template — filters
  • Print template — actions
  • Print template — filters
  • Admin — actions
  • Admin — filters
  • Query & general

Artifex Routing Co

Dependable WordPress plugins from one small team.

Plugins
Coupon CreatorSteuard
Company
  • Terms of Service
  • Privacy Policy
  • My Account
© 2026 Artifex Routing Co
Plugins for WordPress
7ads6x98y

Contact us

Have a license? Log in and we will fill in your details.

Log into Your Account

Lost Password?

Or just send us a message

"*" indicates required fields

This field is for validation purposes and should be left unchanged.
What can we help with?*
Your Name:*
(uses account display name)
(uses account email)
Looking for a refund? Please fill out the refund form

Technical details

Drop files here or
Accepted file types: jpg, png, pdf, Max. file size: 2 MB, Max. files: 5.