• Skip to primary navigation
  • Skip to main content

Artifex Routing Co

  • Plugins
  • Docs
  • Guides
  • 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
  • Coupon Sizes and Dimensions
  • 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
  • Free Printable Coupon Templates and How to Use Them
  • Getting Started with Coupon Creator
  • How to Make Coupons in Word, Google Docs or WordPress
  • How to Print a Coupon from a Website
  • Installing & Activating Add-ons
  • Installing & Activating Pro
  • Locations & Vendors
  • MultiPrint
  • Print Features
  • Printing Coupons
  • Pro Options, Tab by Tab
  • Pro Styling & Image Coupons
  • Restaurant Coupon Ideas That Get Redeemed
  • 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?
  • Coupon Creator Add-Ons Hooks Reference
  • Coupon Creator Hooks Reference
  • Coupon Creator Pro Hooks Reference
  • 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 Add-ons 3.6.1 — October 8th 2026
  • Coupon Creator Pro 3.6.1 — October 8th 2026
  • Coupon Creator Add-Ons 3.7.0 — October 25th 2026
  • Coupon Creator Pro 3.7.0 — October 25th 2026
  • Coupon Creator 3.6.4 — October 25th 2026
  • Coupon Creator 3.6.3 — October 8th 2026
  • 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
  • Developer Reference
  • Coupon Creator Add-Ons Hooks Reference

Coupon Creator Add-Ons Hooks Reference

25 min read

0:00 / 29:05
  • View as Markdown Open this page as plain Markdown (opens in a new tab)
  • Open in ChatGPT Ask questions about this page (opens in a new tab)
  • Open in Claude Ask questions about this page (opens in a new tab)
  • Open in Google AI Studio Ask questions about this page (Google account required) (opens in a new tab)

Actions and filters available to developers extending Coupon Creator Add-Ons. This reference is generated from the plugin source on each release.

Actions (31) #

  • cctor_action_print_page_template
  • cctor_addon_deactivate
  • cctor_addons_load_multi_print_cart_from_session
  • cctor_addons_multi_print_add_to_cart
  • cctor_addons_multi_print_after_calculate_totals
  • cctor_addons_multi_print_after_cart_item_quantity_update
  • cctor_addons_multi_print_after_removed_from_cart
  • cctor_addons_multi_print_before_calculate_totals
  • cctor_addons_multi_print_before_cart_emptied
  • cctor_addons_multi_print_before_remove_from_cart
  • cctor_addons_multi_print_cart_check_cart_items
  • cctor_addons_multi_print_cart_emptied
  • cctor_addons_multi_print_cart_item_restored
  • cctor_addons_multi_print_cart_item_set_quantity
  • cctor_addons_multi_print_cart_loaded_from_session
  • cctor_addons_multi_print_cart_reset
  • cctor_addons_multi_print_cart_updated
  • cctor_addons_multi_print_remove_cart_item_from_session
  • cctor_addons_multi_print_restore_cart_item
  • cctor_addons_multi_print_set_cart_cookies
  • cctor_before_coupon_inner_wrap
  • cctor_email_gate_access_granted
  • cctor_email_gate_email_submitted
  • cctor_email_gate_token_created
  • cctor_location_after_the_title
  • cctor_location_before_the_title
  • cctor_print_before_print_page_coupon
  • cctor_pro_after_location_template
  • cctor_pro_before_location_template
  • cctro_addons_generate_filtered_dynamic_codes_list
  • coupon_multiple_print_head

cctor_action_print_page_template #

do_action( 'cctor_action_print_page_template' )

Fires at the top of the MultiPrint page template, before any markup is output.

Runs after the query has been pointed at the first coupon in the cart and page caching has been disabled.

Source: src/views/multiple-print/print-page.php

cctor_addon_deactivate #

do_action( 'cctor_addon_deactivate' )

Fires on deactivation of Coupon Creator Add-ons

Avaiable when Add-ons is decativated users who have activate_plugins capability

Source: src/Cctor/Main.php

cctor_addons_load_multi_print_cart_from_session #

do_action( 'cctor_addons_load_multi_print_cart_from_session' )

Action fires before loading multiPrint cart from session.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_add_to_cart #

do_action( 'cctor_addons_multi_print_add_to_cart' )

Action fires when adding a cart item.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_after_calculate_totals #

do_action( 'cctor_addons_multi_print_after_calculate_totals', \Cart $this )

Fires after calculating multiPrint cart totals.

  • $this (\Cart) — An instance of the cart object.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_after_cart_item_quantity_update #

do_action( 'cctor_addons_multi_print_after_cart_item_quantity_update', string $cart_item_key, int $quantity, \Cart $this )

Fired after qty has been changed.

  • $cart_item_key (string) — contains the id of the cart item. This may be empty if the cart item does not exist any more.
  • $quantity (int) — contains the quantity of the item.
  • $this (\Cart) — Instance of Cart handler class.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_after_removed_from_cart #

do_action( 'cctor_addons_multi_print_after_removed_from_cart' )

Action fires after removing a cart item.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_before_calculate_totals #

do_action( 'cctor_addons_multi_print_before_calculate_totals', \Cart $this )

Fires before calculating multiPrint cart totals.

  • $this (\Cart) — An instance of the cart object.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_before_cart_emptied #

do_action( 'cctor_addons_multi_print_before_cart_emptied', bool $clear_persistent_cart )

Fires before mutli print cart emptied.

  • $clear_persistent_cart (bool) — Whether to clear the persistent cart.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_before_remove_from_cart #

do_action( 'cctor_addons_multi_print_before_remove_from_cart' )

Action fires when removing a cart item.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_check_cart_items #

do_action( 'cctor_addons_multi_print_cart_check_cart_items' )

Action fires to check cart items.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Print_Page.php

cctor_addons_multi_print_cart_emptied #

do_action( 'cctor_addons_multi_print_cart_emptied', bool $clear_persistent_cart )

Fires after mutli print cart emptied.

  • $clear_persistent_cart (bool) — Whether to clear the persistent cart.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_item_restored #

do_action( 'cctor_addons_multi_print_cart_item_restored', string $cart_item_key, \Cart $this )

Action fires after a cart item is restored.

  • $cart_item_key (string) — Cart item key to restore to the cart.
  • $this (\Cart) — An instance of the cart object.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_item_set_quantity #

do_action( 'cctor_addons_multi_print_cart_item_set_quantity', string $cart_item_key, int $quantity, \Cart $this )

Fired after qty has been changed.

  • $cart_item_key (string) — contains the id of the cart item. This may be empty if the cart item does not exist any more.
  • $quantity (int) — contains the quantity of the item.
  • $this (\Cart) — Instance of Cart handler class.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_loaded_from_session #

do_action( 'cctor_addons_multi_print_cart_loaded_from_session', \Cart $this )

Fires after multiPrint cart laoded from session.

  • $this (\Cart) — An instance of the cart object.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_reset #

do_action( 'cctor_addons_multi_print_cart_reset', \Cart $this )

Fires before resetting multiPrint cart totals reset.

  • $this (\Cart) — An instance of the cart object.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_updated #

do_action( 'cctor_addons_multi_print_cart_updated' )

Action fires when updating cart session.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_remove_cart_item_from_session #

do_action( 'cctor_addons_multi_print_remove_cart_item_from_session', string $key, (string|mixed)[] $item )

Fires when removing an item from the multiPrint cart when getting from a session.

  • $key (string) — The key of the coupon item.
  • $item ((string|mixed)[]) — The coupon cart item.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_restore_cart_item #

do_action( 'cctor_addons_multi_print_restore_cart_item', string $cart_item_key, \Cart $this )

Action fires when restoring a cart item.

  • $cart_item_key (string) — Cart item key to restore to the cart.
  • $this (\Cart) — An instance of the cart object.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_set_cart_cookies #

do_action( 'cctor_addons_multi_print_set_cart_cookies', bool $ )

Action fires when setting cart cookies.

  • $ (bool) — Whether the cart cookies should set.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_before_coupon_inner_wrap #

do_action( 'cctor_before_coupon_inner_wrap', int $coupon_id )

Before Core Shortcode Individual Coupon Wrap

  • $coupon_id (int) —

Source: src/views/type/lower-third.php

cctor_email_gate_access_granted #

do_action( 'cctor_email_gate_access_granted', int $coupon_id, string $token, array $token_data )

Fires when email gate access is granted via URL token.

  • $coupon_id (int) — Coupon post ID
  • $token (string) — Access token
  • $token_data (array) — Token data

Since 3.5.0 · Source: src/Cctor/Email_Gate/Gate.php

cctor_email_gate_email_submitted #

do_action( 'cctor_email_gate_email_submitted', int $coupon_id, string $email, array $token_data )

Fires after email gate submission is successful.

  • $coupon_id (int) — Coupon post ID
  • $email (string) — Email address
  • $token_data (array) — Token data

Since 3.5.0 · Source: src/Cctor/Email_Gate/REST.php

cctor_email_gate_token_created #

do_action( 'cctor_email_gate_token_created', array $token_data, int $coupon_id )

Fires after a new email gate token is created.

  • $token_data (array) — Token data
  • $coupon_id (int) — Coupon post ID

Since 3.5.0 · Source: src/Cctor/Email_Gate/Token.php

cctor_location_after_the_title #

do_action( 'cctor_location_after_the_title' )

Fires after the title in the coupon Location archive header, before the navigation.

Source: src/views/location/content.php

cctor_location_before_the_title #

do_action( 'cctor_location_before_the_title' )

Fires before the title in the coupon Location archive header.

Source: src/views/location/content.php

cctor_print_before_print_page_coupon #

do_action( 'cctor_print_before_print_page_coupon', int $coupon_id )

Fires before each coupon in the MultiPrint page loop.

Runs after the core print hook and before the expiration check, so it fires for coupons that are not shown.

  • $coupon_id (int) — The coupon post ID.

Source: src/views/multiple-print/components/loop.php

cctor_pro_after_location_template #

do_action( 'cctor_pro_after_location_template' )

Fires after the coupon Location content template, inside the page wrapper.

Source: src/views/location/location.php

cctor_pro_before_location_template #

do_action( 'cctor_pro_before_location_template' )

Fires before the coupon Location content template, inside the page wrapper.

Source: src/views/location/location.php

cctro_addons_generate_filtered_dynamic_codes_list #

do_action( 'cctro_addons_generate_filtered_dynamic_codes_list', \WP_Post $coupon )

Fire immediately prior to the generation of a filtered (exportable) dynamic list.

  • $coupon (\WP_Post) — The post object for the coupon with dynamic codes to export.

Source: src/Cctor/Admin/Dynamic.php

coupon_multiple_print_head #

do_action( 'coupon_multiple_print_head' )

Fires inside the head element of the MultiPrint page template.

Runs after the core print meta and head hooks, so styles and scripts added here apply only to the MultiPrint page.

Source: src/views/multiple-print/print-page.php

Filters (67) #

  • 'cctor_addons_multi_print_cart_' . __FUNCTION__
  • active_plugins
  • artifex_license_store_url
  • cctor_addons_can_run
  • cctor_addons_cookie_expiration
  • cctor_addons_dynamic_csv_max_bytes
  • cctor_addons_email_delivery_enabled
  • cctor_addons_email_gate_enabled
  • cctor_addons_multi_print_add_cart_item
  • cctor_addons_multi_print_cart_add_cart_item_data
  • cctor_addons_multi_print_cart_contents_changed
  • cctor_addons_multi_print_cart_database_install_capabilities_check
  • cctor_addons_multi_print_cart_hash
  • cctor_addons_multi_print_cart_id
  • cctor_addons_multi_print_cart_session_handler
  • cctor_addons_multi_print_cart_total
  • cctor_addons_multi_print_enabled
  • cctor_addons_multi_print_get_cart_contents
  • cctor_addons_multi_print_get_cart_item_from_session
  • cctor_addons_multi_print_init_session
  • cctor_addons_multi_print_is_rest_api_request
  • cctor_addons_multi_print_page_url
  • cctor_addons_multi_print_persistent_cart_enabled
  • cctor_coupon_location_label_singular
  • cctor_coupon_location_label_singular_lowercase
  • cctor_coupon_location_plural
  • cctor_coupon_location_plural_lowercase
  • cctor_coupon_vendor_label_singular
  • cctor_coupon_vendor_label_singular_lowercase
  • cctor_coupon_vendor_plural
  • cctor_coupon_vendor_plural_lowercase
  • cctor_email_coupon_delivery_context
  • cctor_email_coupon_delivery_custom_message
  • cctor_email_coupon_delivery_placeholders
  • cctor_email_coupon_delivery_settings_fields
  • cctor_email_delivery_is_enabled
  • cctor_email_delivery_should_show
  • cctor_email_gate_cookie_duration
  • cctor_email_gate_cookie_params
  • cctor_email_gate_custom_message
  • cctor_email_gate_email_body
  • cctor_email_gate_email_headers
  • cctor_email_gate_email_subject
  • cctor_email_gate_heading
  • cctor_email_gate_is_enabled
  • cctor_email_gate_placeholders
  • cctor_email_gate_preload_assets
  • cctor_email_gate_settings_fields
  • cctor_email_gate_shortcodes
  • cctor_email_gate_should_show
  • cctor_email_gate_subject
  • cctor_email_gate_template_context
  • cctor_email_gate_template_path
  • cctor_email_placeholders
  • cctor_email_rate_limit_per_hour
  • cctor_filter_dynamic_code_length
  • cctor_location_slug
  • cctor_query_is_coupon_location
  • cctor_query_is_coupon_vendor
  • cctor_sanitize_date
  • cctor_sanitize_dimensions
  • cctor_sanitize_text
  • cctor_vendor_slug
  • cctro_addons_dynamic_codes_csv_export_columns
  • cctro_addons_filter_dynamic_code_characters
  • cctro_addons_filter_dynamic_code_date_format
  • filter_cctor_add_on_able_to_run

'cctor_addons_multi_print_cart_' . __FUNCTION__ #

apply_filters( ''cctor_addons_multi_print_cart_' . __FUNCTION__', mixed $ )

Filter the cart total coupons raw value.

  • $ (mixed) — The raw value of total coupons.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

active_plugins #

apply_filters( 'active_plugins' )

Check if WooCommerce is active

Source: src/Cctor/Admin/WooCommerce.php

artifex_license_store_url #

apply_filters( 'artifex_license_store_url', string $url, string $slug )

Filters the EDD licensing endpoint.

  • $url (string) — Store URL.
  • $slug (string) — Plugin slug.

Source: src/Cctor/Admin/SDK_License.php

cctor_addons_can_run #

apply_filters( 'cctor_addons_can_run', bool $plugin_can_run )

Filter whether the plugin can run.

  • $plugin_can_run (bool) — Whether the plugin can run.

Since 3.0 · Source: coupon-creator-add-ons.php

cctor_addons_cookie_expiration #

apply_filters( 'cctor_addons_cookie_expiration', int|string $expiration, int $coupon_id )

Filters the dynamic-code cookie expiration timestamp.

  • $expiration (int|string) — Unix timestamp when the cookie expires. Defaults to 30 days from now when the coupon ignores expiration or has no usable expiration date.
  • $coupon_id (int) — The coupon post ID.

Since 3.5.2 · Source: src/Cctor/Cookie.php

cctor_addons_dynamic_csv_max_bytes #

apply_filters( 'cctor_addons_dynamic_csv_max_bytes', int $max_bytes, int $csv_file_id )

Filters the maximum dynamic-code csv file size in bytes.

The default of 1MB is roughly 100k single-column codes. Zero or a negative value disables the cap.

  • $max_bytes (int) — Maximum file size in bytes.
  • $csv_file_id (int) — The csv attachment id.

Since 3.5.2 · Source: src/Cctor/Dynamic.php

cctor_addons_email_delivery_enabled #

apply_filters( 'cctor_addons_email_delivery_enabled', bool $activate )

Allows filtering whether the Email Delivery Provider should be activated or not.

Note: this filter will only apply if the disable constant or env var are not set or are set to falsy values.

  • $activate (bool) — Defaults to <code>true</code>.

Since 3.5.0 · Source: src/Cctor/Email/Provider.php

cctor_addons_email_gate_enabled #

apply_filters( 'cctor_addons_email_gate_enabled', bool $activate )

Allows filtering whether the Email Gate Provider should be activated or not.

  • $activate (bool) — Defaults to <code>true</code>.

Since 3.5.0 · Source: src/Cctor/Email_Gate/Provider.php

cctor_addons_multi_print_add_cart_item #

apply_filters( 'cctor_addons_multi_print_add_cart_item', (string|mixed)[] $cart_contents )

Filter an item to multiPrint cart contents after item data merge.

  • $cart_contents ((string|mixed)[]) — An array of cart contents.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_add_cart_item_data #

apply_filters( 'cctor_addons_multi_print_cart_add_cart_item_data', (string|mixed)[] $cart_item_data, int $coupon_id, int $quantity )

Filter an item data.

  • $cart_item_data ((string|mixed)[]) — An array of item data.
  • $coupon_id (int) — <ul>
    <li>id of the coupon the key is being generated for.</li>
    </ul>
  • $quantity (int) — contains the quantity of the item.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_contents_changed #

apply_filters( 'cctor_addons_multi_print_cart_contents_changed', (string|mixed)[] $cart_contents )

Filter before multiPrint cart contents set from session on a change.

  • $cart_contents ((string|mixed)[]) — An array of cart contents.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_database_install_capabilities_check #

apply_filters( 'cctor_addons_multi_print_cart_database_install_capabilities_check', string $ajax_capability )

Allows filtering of the capability required to use reinstall the database.

  • $ajax_capability (string) — The capability required to use the ajax features, default manage_options.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Database/Controller.php

cctor_addons_multi_print_cart_hash #

apply_filters( 'cctor_addons_multi_print_cart_hash', string $hash, (string|mixed)[] $cart_session )

Filter when getting the multiPrint cart contents.

  • $hash (string) — Hash for multiPrint cart content.
  • $cart_session ((string|mixed)[]) — An array of cart contents.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_id #

apply_filters( 'cctor_addons_multi_print_cart_id', (string|mixed)[] $id_parts, int $coupon_id, array $cart_item_data )

Filter the unique id generated for a cart item.

  • $id_parts ((string|mixed)[]) — An array of identifiers to create a unique string from.
  • $coupon_id (int) — <ul>
    <li>id of the coupon the key is being generated for.</li>
    </ul>
  • $cart_item_data (array) — other cart item data passed which affects this items uniqueness in the cart.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_cart_session_handler #

apply_filters( 'cctor_addons_multi_print_cart_session_handler', string $session_class )

Allows filtering the class to clean up the multiPrint cart session table.

  • $session_class (string) — The cart session handler class name. Default Cart_Session::class.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Multi_Print_Provider.php

cctor_addons_multi_print_cart_total #

apply_filters( 'cctor_addons_multi_print_cart_total', mixed $ )

Filter the cart display total coupons value.

  • $ (mixed) — The cart display total coupons value.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_enabled #

apply_filters( 'cctor_addons_multi_print_enabled', bool $activate )

Allows filtering whether the MultiPrint Provider should be activated or not.

Note: this filter will only apply if the disable constant or env var are not set or are set to falsy values.

  • $activate (bool) — Defaults to <code>true</code>.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Multi_Print_Provider.php

cctor_addons_multi_print_get_cart_contents #

apply_filters( 'cctor_addons_multi_print_get_cart_contents', (string|mixed)[] $cart_contents )

Filter when getting the multiPrint cart contents.

  • $cart_contents ((string|mixed)[]) — An array of cart contents.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_get_cart_item_from_session #

apply_filters( 'cctor_addons_multi_print_get_cart_item_from_session', (string|mixed)[] $session_data, (string|mixed)[] $item, string $key )

Filter the multiPrint coupon cart item before adding to the cart.

  • $session_data ((string|mixed)[]) — An array of session data for coupon.
  • $item ((string|mixed)[]) — The coupon cart item.
  • $key (string) — The key of the coupon item.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_addons_multi_print_init_session #

apply_filters( 'cctor_addons_multi_print_init_session', bool $init )

Filters whether the multi-print cart session should initialize on init for the current request. When false the session boots lazily on the first cart-aware render instead.

  • $init (bool) — Whether to initialize the session on init.

Since 3.5.2 · Source: src/Cctor/Multi_Print/Multi_Print_Provider.php

cctor_addons_multi_print_is_rest_api_request #

apply_filters( 'cctor_addons_multi_print_is_rest_api_request' )

Whether this is a REST API request.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Multi_Print_Provider.php

cctor_addons_multi_print_page_url #

apply_filters( 'cctor_addons_multi_print_page_url', string $url )

Allows filtering of the multiPrint page URL.

  • $url (string) — Defaults to home_url + /multiple-print/.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Url.php

cctor_addons_multi_print_persistent_cart_enabled #

apply_filters( 'cctor_addons_multi_print_persistent_cart_enabled', bool $ )

Filter whether multiPrint persistent cart is enabled.

  • $ (bool) — Whether the persistent cart is enabled. Default is true.

Since 3.4.0 · Source: src/Cctor/Multi_Print/Cart.php

cctor_coupon_location_label_singular #

apply_filters( 'cctor_coupon_location_label_singular', string $label )

Filters the singular label of the coupon Location taxonomy.

  • $label (string) — The singular label. Default ‘Location’.

Source: src/Cctor/Main.php

cctor_coupon_location_label_singular_lowercase #

apply_filters( 'cctor_coupon_location_label_singular_lowercase', string $label )

Filters the lowercase singular label of the coupon Location taxonomy.

  • $label (string) — The lowercase singular label. Default ‘location’.

Source: src/Cctor/Main.php

cctor_coupon_location_plural #

apply_filters( 'cctor_coupon_location_plural', string $label )

Filters the plural label of the coupon Location taxonomy.

  • $label (string) — The plural label. Default ‘Locations’.

Source: src/Cctor/Main.php

cctor_coupon_location_plural_lowercase #

apply_filters( 'cctor_coupon_location_plural_lowercase', string $label )

Filters the lowercase plural label of the coupon Location taxonomy.

  • $label (string) — The lowercase plural label. Default ‘locations’.

Source: src/Cctor/Main.php

cctor_coupon_vendor_label_singular #

apply_filters( 'cctor_coupon_vendor_label_singular', string $label )

Filters the singular label of the coupon Vendor taxonomy.

  • $label (string) — The singular label. Default ‘Vendor’.

Source: src/Cctor/Main.php

cctor_coupon_vendor_label_singular_lowercase #

apply_filters( 'cctor_coupon_vendor_label_singular_lowercase', string $label )

Filters the lowercase singular label of the coupon Vendor taxonomy.

  • $label (string) — The lowercase singular label. Default ‘vendor’.

Source: src/Cctor/Main.php

cctor_coupon_vendor_plural #

apply_filters( 'cctor_coupon_vendor_plural', string $label )

Filters the plural label of the coupon Vendor taxonomy.

  • $label (string) — The plural label. Default ‘Vendors’.

Source: src/Cctor/Main.php

cctor_coupon_vendor_plural_lowercase #

apply_filters( 'cctor_coupon_vendor_plural_lowercase', string $label )

Filters the lowercase plural label of the coupon Vendor taxonomy.

  • $label (string) — The lowercase plural label. Default ‘vendors’.

Source: src/Cctor/Main.php

cctor_email_coupon_delivery_context #

apply_filters( 'cctor_email_coupon_delivery_context', array $context, \Cctor__Coupon__Addons__Email__Coupon_Delivery $email )

Filters the variables passed to the Coupon Delivery email template.

  • $context (array) — Template variables: email, heading, custom_message, coupon, coupon_id, coupon_title, coupon_code, coupon_link, coupon_image, site_name, site_url.
  • $email (\Cctor__Coupon__Addons__Email__Coupon_Delivery) — The email instance.

Source: src/Cctor/Email/Coupon_Delivery.php

cctor_email_coupon_delivery_custom_message #

apply_filters( 'cctor_email_coupon_delivery_custom_message', string $message, \Cctor__Coupon__Addons__Email__Coupon_Delivery $email )

Filters the additional message shown in the Coupon Delivery email.

  • $message (string) — The message after the admin setting and per-coupon overrides are applied.
  • $email (\Cctor__Coupon__Addons__Email__Coupon_Delivery) — The email instance.

Source: src/Cctor/Email/Coupon_Delivery.php

cctor_email_coupon_delivery_placeholders #

apply_filters( 'cctor_email_coupon_delivery_placeholders', array $placeholders, \Cctor__Coupon__Addons__Email__Coupon_Delivery $email )

Filters the placeholder values available to the Coupon Delivery email.

  • $placeholders (array) — Values keyed by placeholder name, such as ‘coupon_code’.
  • $email (\Cctor__Coupon__Addons__Email__Coupon_Delivery) — The email instance.

Source: src/Cctor/Email/Coupon_Delivery.php

cctor_email_coupon_delivery_settings_fields #

apply_filters( 'cctor_email_coupon_delivery_settings_fields', array $fields, \Cctor__Coupon__Addons__Email__Coupon_Delivery $email )

Filters the admin settings fields for the Coupon Delivery email.

  • $fields (array) — Settings field definitions keyed by field name.
  • $email (\Cctor__Coupon__Addons__Email__Coupon_Delivery) — The email instance.

Source: src/Cctor/Email/Coupon_Delivery.php

cctor_email_delivery_is_enabled #

apply_filters( 'cctor_email_delivery_is_enabled', bool $enabled, int $coupon_id )

Filter whether email delivery is enabled for a coupon.

  • $enabled (bool) — Whether delivery is enabled
  • $coupon_id (int) — Coupon post ID

Since 3.5.0 · Source: src/Cctor/Email/Display.php

cctor_email_delivery_should_show #

apply_filters( 'cctor_email_delivery_should_show', bool|null $show_form, int $coupon_id, string $context )

Filter whether to show email delivery form based on context.

  • $show_form (bool|null) — Whether to show form (null for default behavior)
  • $coupon_id (int) — Coupon post ID
  • $context (string) — Current context

Since 3.5.0 · Source: src/Cctor/Email/Display.php

cctor_email_gate_cookie_duration #

apply_filters( 'cctor_email_gate_cookie_duration', int $duration, int $coupon_id )

Filter the email gate cookie duration.

  • $duration (int) — Duration in seconds
  • $coupon_id (int) — Coupon post ID

Since 3.5.0 · Source: src/Cctor/Email_Gate/Cookie.php

cctor_email_gate_cookie_params #

apply_filters( 'cctor_email_gate_cookie_params', array $params, int $coupon_id )

Filter the email gate cookie parameters.

  • $params (array) — Cookie parameters
  • $coupon_id (int) — Coupon post ID

Since 3.5.0 · Source: src/Cctor/Email_Gate/Cookie.php

cctor_email_gate_custom_message #

apply_filters( 'cctor_email_gate_custom_message', string $message, \Cctor__Coupon__Addons__Email_Gate__Email $email )

Filters the additional message shown in the Email Gate access email.

  • $message (string) — The message after the admin setting and per-coupon overrides are applied.
  • $email (\Cctor__Coupon__Addons__Email_Gate__Email) — The email instance.

Source: src/Cctor/Email_Gate/Email.php

cctor_email_gate_email_body #

apply_filters( 'cctor_email_gate_email_body', string $body, int $coupon_id, string $access_url )

Filter the email gate body.

  • $body (string) — Email body.
  • $coupon_id (int) — Coupon post ID.
  • $access_url (string) — Access URL.

Since 3.5.0 · Source: src/Cctor/Email_Gate/REST.php

cctor_email_gate_email_headers #

apply_filters( 'cctor_email_gate_email_headers', array $headers, int $coupon_id )

Filter the email gate headers.

  • $headers (array) — Email headers.
  • $coupon_id (int) — Coupon post ID.

Since 3.5.0 · Source: src/Cctor/Email_Gate/REST.php

cctor_email_gate_email_subject #

apply_filters( 'cctor_email_gate_email_subject', string $subject, int $coupon_id )

Filter the email gate subject.

  • $subject (string) — Email subject.
  • $coupon_id (int) — Coupon post ID.

Since 3.5.0 · Source: src/Cctor/Email_Gate/REST.php

cctor_email_gate_heading #

apply_filters( 'cctor_email_gate_heading', string $heading, \Cctor__Coupon__Addons__Email_Gate__Email $email )

Filters the heading of the Email Gate access email.

  • $heading (string) — The heading after the admin setting override is applied.
  • $email (\Cctor__Coupon__Addons__Email_Gate__Email) — The email instance.

Source: src/Cctor/Email_Gate/Email.php

cctor_email_gate_is_enabled #

apply_filters( 'cctor_email_gate_is_enabled', bool $enabled, int $coupon_id )

Filter whether email gate is enabled for a coupon.

  • $enabled (bool) — Whether gate is enabled
  • $coupon_id (int) — Coupon post ID

Since 3.5.0 · Source: src/Cctor/Email_Gate/Gate.php

cctor_email_gate_placeholders #

apply_filters( 'cctor_email_gate_placeholders', array $placeholders, \Cctor__Coupon__Addons__Email_Gate__Email $email )

Filters the placeholder values available to the Email Gate access email.

  • $placeholders (array) — Values keyed by placeholder name, such as ‘coupon_title’ and ‘access_link’.
  • $email (\Cctor__Coupon__Addons__Email_Gate__Email) — The email instance.

Source: src/Cctor/Email_Gate/Email.php

cctor_email_gate_preload_assets #

apply_filters( 'cctor_email_gate_preload_assets', bool $preload )

Filter whether to preload email gate assets.

  • $preload (bool) — Whether to preload assets.

Since 3.5.0 · Source: src/Cctor/Email_Gate/Assets.php

cctor_email_gate_settings_fields #

apply_filters( 'cctor_email_gate_settings_fields', array $fields, \Cctor__Coupon__Addons__Email_Gate__Email $email )

Filters the admin settings fields for the Email Gate access email.

  • $fields (array) — Settings field definitions keyed by field name.
  • $email (\Cctor__Coupon__Addons__Email_Gate__Email) — The email instance.

Source: src/Cctor/Email_Gate/Email.php

cctor_email_gate_shortcodes #

apply_filters( 'cctor_email_gate_shortcodes', array $shortcodes )

Filter the shortcodes to check for email gate asset preloading.

  • $shortcodes (array) — List of shortcode names.

Since 3.5.0 · Source: src/Cctor/Email_Gate/Assets.php

cctor_email_gate_should_show #

apply_filters( 'cctor_email_gate_should_show', bool $show_gate, int $coupon_id, string $context )

Filter whether to show gate based on context.

  • $show_gate (bool) — Whether to show gate
  • $coupon_id (int) — Coupon post ID
  • $context (string) — Current context

Since 3.5.0 · Source: src/Cctor/Email_Gate/Display.php

cctor_email_gate_subject #

apply_filters( 'cctor_email_gate_subject', string $subject, \Cctor__Coupon__Addons__Email_Gate__Email $email )

Filters the subject of the Email Gate access email.

  • $subject (string) — The subject after the admin setting and per-coupon overrides are applied.
  • $email (\Cctor__Coupon__Addons__Email_Gate__Email) — The email instance.

Source: src/Cctor/Email_Gate/Email.php

cctor_email_gate_template_context #

apply_filters( 'cctor_email_gate_template_context', array $context, \Cctor__Coupon__Addons__Email_Gate__Email $email )

Filters the variables passed to the Email Gate access email template.

  • $context (array) — Template variables: email, heading, custom_message, coupon, coupon_id, coupon_title, coupon_link, access_link, site_name, site_url.
  • $email (\Cctor__Coupon__Addons__Email_Gate__Email) — The email instance.

Source: src/Cctor/Email_Gate/Email.php

cctor_email_gate_template_path #

apply_filters( 'cctor_email_gate_template_path', string $plugin_path, \Cctor__Coupon__Addons__Email_Gate__Email $email )

Filters the plugin template path for the Email Gate access email.

Only applied when no theme override of the template was found.

  • $plugin_path (string) — Absolute path to the plugin’s email template file.
  • $email (\Cctor__Coupon__Addons__Email_Gate__Email) — The email instance.

Source: src/Cctor/Email_Gate/Email.php

cctor_email_placeholders #

apply_filters( 'cctor_email_placeholders', array $placeholders, \Cctor__Coupon__Addons__Email__Email_Abstract $email )

Filters the placeholder values shared by all of this plugin’s email types.

  • $placeholders (array) — Site and coupon values keyed by placeholder name.
  • $email (\Cctor__Coupon__Addons__Email__Email_Abstract) — The email instance.

Source: src/Cctor/Email/Email_Abstract.php

cctor_email_rate_limit_per_hour #

apply_filters( 'cctor_email_rate_limit_per_hour', int $max_per_hour )

Filters how many coupon emails one IP address may send per hour.

  • $max_per_hour (int) — Maximum sends per hour. Default 10.

Source: src/Cctor/Email/Service.php

cctor_filter_dynamic_code_length #

apply_filters( 'cctor_filter_dynamic_code_length', int $ )

Filter the dynamic code length options

  • $ (int) — 10 an integer

Source: src/Cctor/Meta/Fields.php

cctor_location_slug #

apply_filters( 'cctor_location_slug', string $slug )

Filters the Location taxonomy slug.

  • $slug (string) — The sanitized location slug from the options page.

Source: src/Cctor/Main.php

cctor_query_is_coupon_location #

apply_filters( 'cctor_query_is_coupon_location', bool $cctor_is_coupon_location )

Filters whether the current query is a coupon Location archive.

  • $cctor_is_coupon_location (bool) — Whether the main query was flagged as a coupon Location page.

Source: src/functions/template-tags/general.php

cctor_query_is_coupon_vendor #

apply_filters( 'cctor_query_is_coupon_vendor', bool $cctor_is_coupon_vendor )

Filters whether the current query is a coupon Vendor archive.

  • $cctor_is_coupon_vendor (bool) — Whether the main query was flagged as a coupon Vendor page.

Source: src/functions/template-tags/general.php

cctor_sanitize_date #

apply_filters( 'cctor_sanitize_date', string $date )

Filters the expiration date from the WooCommerce coupon form before it is saved as coupon meta.

The value has already passed through sanitize_text_field(). No callback is attached by default; hook here to normalize or validate the date.

  • $date (string) — The submitted expiration date.

Source: src/Cctor/Admin/WooCommerce.php

cctor_sanitize_dimensions #

apply_filters( 'cctor_sanitize_dimensions', string $value )

Filters a numeric amount or limit from the WooCommerce coupon form before it is saved as coupon meta.

The value has already passed through sanitize_text_field(). No callback is attached by default; hook here to normalize or validate the number.

  • $value (string) — The submitted amount or limit.

Source: src/Cctor/Admin/WooCommerce.php

cctor_sanitize_text #

apply_filters( 'cctor_sanitize_text', string $value )

Filters a text value from the WooCommerce coupon form before it is saved as coupon meta.

The value has already passed through sanitize_text_field(). No callback is attached by default; hook here to normalize or validate the value.

  • $value (string) — The submitted form value.

Source: src/Cctor/Admin/WooCommerce.php

cctor_vendor_slug #

apply_filters( 'cctor_vendor_slug', string $slug )

Filters the Vendor taxonomy slug.

  • $slug (string) — The sanitized vendor slug from the options page.

Source: src/Cctor/Main.php

cctro_addons_dynamic_codes_csv_export_columns #

apply_filters( 'cctro_addons_dynamic_codes_csv_export_columns', array $, array $, \WP_Post $coupon )

Used to modify what columns should be shown on the CSV export The column name should be the Array Index and the Header is the array Value

  • $ (array) — Columns, associative array
  • $ (array) — Items to be exported
  • $coupon (\WP_Post) — The post object for the coupon with dynamic codes to export.

Source: src/Cctor/Admin/Dynamic.php

cctro_addons_filter_dynamic_code_characters #

apply_filters( 'cctro_addons_filter_dynamic_code_characters', string $, string $keyspace )

Filters the characters used for random generation of dynamic code

  • $ (string) — a empty string that can be returned with characters to generate code
  • $keyspace (string) — a list of characters that are used to generate the dynamic code

Since 2.5.5 · Source: src/Cctor/Dynamic.php

cctro_addons_filter_dynamic_code_date_format #

apply_filters( 'cctro_addons_filter_dynamic_code_date_format', string $date_format )

Filters default date format for the dynamic code creation date and time.

  • $date_format (string) — The date format to display when a dynamic code is created.

Since 3.1 · Source: src/Cctor/Admin/Dynamic.php

filter_cctor_add_on_able_to_run #

apply_filters( 'filter_cctor_add_on_able_to_run', bool $version_ok )

Filters whether Add-ons may run with the active core and Pro versions.

  • $version_ok (bool) — True when core and Pro meet the minimum versions.

Source: coupon-creator-add-ons.php

Updated on October 26, 2026
Hooks Reference

What are your Feelings

  • Happy
  • Normal
  • Sad

Share This Article :

  • Facebook
  • X
  • LinkedIn
  • Pinterest
Coupon Creator Hooks ReferenceCoupon Creator Pro Hooks Reference
Table of Contents
  • Actions (31)
    • cctor_action_print_page_template
    • cctor_addon_deactivate
    • cctor_addons_load_multi_print_cart_from_session
    • cctor_addons_multi_print_add_to_cart
    • cctor_addons_multi_print_after_calculate_totals
    • cctor_addons_multi_print_after_cart_item_quantity_update
    • cctor_addons_multi_print_after_removed_from_cart
    • cctor_addons_multi_print_before_calculate_totals
    • cctor_addons_multi_print_before_cart_emptied
    • cctor_addons_multi_print_before_remove_from_cart
    • cctor_addons_multi_print_cart_check_cart_items
    • cctor_addons_multi_print_cart_emptied
    • cctor_addons_multi_print_cart_item_restored
    • cctor_addons_multi_print_cart_item_set_quantity
    • cctor_addons_multi_print_cart_loaded_from_session
    • cctor_addons_multi_print_cart_reset
    • cctor_addons_multi_print_cart_updated
    • cctor_addons_multi_print_remove_cart_item_from_session
    • cctor_addons_multi_print_restore_cart_item
    • cctor_addons_multi_print_set_cart_cookies
    • cctor_before_coupon_inner_wrap
    • cctor_email_gate_access_granted
    • cctor_email_gate_email_submitted
    • cctor_email_gate_token_created
    • cctor_location_after_the_title
    • cctor_location_before_the_title
    • cctor_print_before_print_page_coupon
    • cctor_pro_after_location_template
    • cctor_pro_before_location_template
    • cctro_addons_generate_filtered_dynamic_codes_list
    • coupon_multiple_print_head
  • Filters (67)
    • 'cctor_addons_multi_print_cart_' . __FUNCTION__
    • active_plugins
    • artifex_license_store_url
    • cctor_addons_can_run
    • cctor_addons_cookie_expiration
    • cctor_addons_dynamic_csv_max_bytes
    • cctor_addons_email_delivery_enabled
    • cctor_addons_email_gate_enabled
    • cctor_addons_multi_print_add_cart_item
    • cctor_addons_multi_print_cart_add_cart_item_data
    • cctor_addons_multi_print_cart_contents_changed
    • cctor_addons_multi_print_cart_database_install_capabilities_check
    • cctor_addons_multi_print_cart_hash
    • cctor_addons_multi_print_cart_id
    • cctor_addons_multi_print_cart_session_handler
    • cctor_addons_multi_print_cart_total
    • cctor_addons_multi_print_enabled
    • cctor_addons_multi_print_get_cart_contents
    • cctor_addons_multi_print_get_cart_item_from_session
    • cctor_addons_multi_print_init_session
    • cctor_addons_multi_print_is_rest_api_request
    • cctor_addons_multi_print_page_url
    • cctor_addons_multi_print_persistent_cart_enabled
    • cctor_coupon_location_label_singular
    • cctor_coupon_location_label_singular_lowercase
    • cctor_coupon_location_plural
    • cctor_coupon_location_plural_lowercase
    • cctor_coupon_vendor_label_singular
    • cctor_coupon_vendor_label_singular_lowercase
    • cctor_coupon_vendor_plural
    • cctor_coupon_vendor_plural_lowercase
    • cctor_email_coupon_delivery_context
    • cctor_email_coupon_delivery_custom_message
    • cctor_email_coupon_delivery_placeholders
    • cctor_email_coupon_delivery_settings_fields
    • cctor_email_delivery_is_enabled
    • cctor_email_delivery_should_show
    • cctor_email_gate_cookie_duration
    • cctor_email_gate_cookie_params
    • cctor_email_gate_custom_message
    • cctor_email_gate_email_body
    • cctor_email_gate_email_headers
    • cctor_email_gate_email_subject
    • cctor_email_gate_heading
    • cctor_email_gate_is_enabled
    • cctor_email_gate_placeholders
    • cctor_email_gate_preload_assets
    • cctor_email_gate_settings_fields
    • cctor_email_gate_shortcodes
    • cctor_email_gate_should_show
    • cctor_email_gate_subject
    • cctor_email_gate_template_context
    • cctor_email_gate_template_path
    • cctor_email_placeholders
    • cctor_email_rate_limit_per_hour
    • cctor_filter_dynamic_code_length
    • cctor_location_slug
    • cctor_query_is_coupon_location
    • cctor_query_is_coupon_vendor
    • cctor_sanitize_date
    • cctor_sanitize_dimensions
    • cctor_sanitize_text
    • cctor_vendor_slug
    • cctro_addons_dynamic_codes_csv_export_columns
    • cctro_addons_filter_dynamic_code_characters
    • cctro_addons_filter_dynamic_code_date_format
    • filter_cctor_add_on_able_to_run

Artifex Routing Co

Dependable WordPress plugins from one small team.

  • Artifex Routing Co on LinkedIn
  • Artifex Routing Co on X
Plugins
Coupon CreatorSteuardManifystWyregraf
Company
  • Terms of Service
  • Privacy Policy
  • Affiliates
  • 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.