The cctor_ post meta keys that store a coupon's data, for use with get_post_meta() in your own templates and snippets.
Every coupon is a cctor_coupon post, and its settings are saved as post meta with the cctor_ prefix. The keys below hold real data you can read; most other field IDs in the editor are UI-only (help text, headings, upgrade prompts) and store nothing.
Data-bearing meta keys #
| Meta key | Stores | Notes |
|---|---|---|
cctor_coupon_type |
Template to render | ticket (Modern Ticket, the default for new coupons), default (Classic) or image (Pro adds modern, two-column, lower-third, highlight) |
cctor_business_name |
Business name shown above the deal | Modern Ticket only; blank hides the line |
cctor_amount |
The deal text | e.g. 30% OFF! — shown in the .cctor-deal heading |
cctor_colorheader |
Deal font color | Hex value. Leave empty on the Modern Ticket to let it pick black or white for contrast automatically |
cctor_colordiscount |
Deal background color | Hex value (alpha allowed) |
cctor_description |
The terms text | Saved with wp_kses_post() — see terms-field-formatting |
cctor_bordercolor |
Inner border color | Hex value. Classic only — the Modern Ticket has no inner border |
cctor_image |
Image-coupon attachment ID | Only used when cctor_coupon_type is image |
cctor_expiration_option |
Expiration method | 1 = ignore, 2 = date (Pro adds 3–5) |
cctor_expiration |
Expiration date | Stored per cctor_date_format |
cctor_date_format |
Date format | 0 = MM/DD/YYYY, 1 = DD/MM/YYYY |
cctor_ignore_expiration |
Ignore-expiration flag | on when checked |
Example #
$deal = get_post_meta( $coupon_id, 'cctor_amount', true );
$terms = get_post_meta( $coupon_id, 'cctor_description', true );
$type = get_post_meta( $coupon_id, 'cctor_coupon_type', true );
Defaults for new coupons come from the plugin's option values (Coupons → Options), not from the meta itself, so a brand-new coupon may return an empty string until saved.
See also post-type-taxonomy and actions-filters.