Linux 软件免费装
Banner图

Coupon Creator

开发者 brianjessee
更新时间 2025年11月6日 10:25
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 6.8.3
版权: GPLv2
版权网址: 版权信息

标签

shortcode custom post type coupon

下载

1.90 3.2.2 2.1.2 3.4.0 3.2.1 3.3.0 2.4 2.5.2.1 2.5.6 3.0.1 3.1 3.1.1 3.2 1.81 2.5.4.1 3.4.1 3.4.3 2.0.3 2.3.2 3.4.2 3.4.2.1

详情介绍:

Support on WordPress.org is for troubleshooting bugs and related issues. The forums are monitored and replied to within one week's time. If you are looking for direct support please check out Coupon Creator Pro
Coupon Creator now includes a Coupon Block to display single coupons or a loop of coupons with options to align and order them. Create your own coupon with the Coupon Creator for WordPress or upload an image of a coupon instead. Check out a demo gallery of Coupon Creator Features! Watch this quick video to see the Coupon Creator in Action: https://www.youtube.com/watch?v=aGoxJ3TBRhk Coupon Creator Add-ons 3.4 Features Include: (included with Pro Business and higher license levels) Coupon Creator Pro 3.4 Features Include: How to Create a Coupon Create a coupon by going to the coupon custom post type and filling in all the settings in the custom meta box. Insert the coupon into a post or page using the shortcode inserter above the content editor. Coupon displays until the expiration date that is chosen by you or you can check the Ignore Expiration Checkbox and the coupon will display on the site past the expiration date or with no date at all. Coupon Creator Shortcode The Coupon Shortcode: [coupon couponid="xx" category="Category Name(optional)" coupon_align="cctor_aligncenter" name="Coupon Name"] Manually replace fields in shortcode: couponid - replace xx with ID of Coupon custom post couponalign - align coupon options: cctor_aligncenter, cctor_alignnone, cctor_alignleft, and cctor_alignright name -optional and for your reference only Coupon Loop Set couponid to "loop" to display all coupons. (couponid="loop") All the coupons in the loop will use the same couponalign. Coupon Categories Assign categories to a coupon using the loop option only to display coupons from a specific category. category - add the category name to display coupons only from it For example, if you have a category called "Coupon Home Page", call it by: category="Coupon Home Page" Coupon Shortcode Inserter Above the post editor, click the "Add Coupon" button to open the inserter. Select an individual coupon or coupon loop. If you select the coupon loop, an option will appear to select a coupon category for the loop or you can leave it blank for all coupons (default). The third option to select is the couponalign. Once you have all the options selected, press "Insert Coupon" to insert the shortcode into the editor. Examples Find examples of coupons on the Coupon Creator Home Page Coupons in Text Widgets Coupons will work in Sidebar Text Widgets, but you must add add_filter('widget_text', 'do_shortcode'); To your theme's function.php Coupon Options On the options page set default colors for new coupons. Another option for nofollow on the links and templates along with an option to hide the click to print link. You can add custom css in the options and it will modify both the shortcode coupon and the print template.

安装:

  1. Upload '/coupon-creator/' to the '/wp-content/plugins/' directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Create a coupon under the coupon custom post type and insert shortcode into content using shortcode [coupon couponid="xx" coupon_align="cctor_aligncenter" name="Coupon Name"]

屏幕截图:

  • Expiration Tab in Coupon Editor
  • Coupon Editor
  • Coupon List
  • Coupon Inserter
  • Coupon Options

升级注意事项:

3.0 Coupon Creator 3.0 adds Block Editor support, refactors the code base, and increases the minimum PHP version to 5.6 and WordPress 4.9. If you have Pro or Add-ons please update those to 3.0 for them to continue to work.

更新日志:

3.4.3 November 6th 2025 3.4.2.1 January 14th 2025 3.4.2 January 14th 2025 3.4.1 May 13th 2024 3.4.0 February 21st 2024 3.3.0 March 9th, 2023 3.2.2 April 4th, 2022 3.2.1 January 14th, 2022 3.2 March 8th, 2021 3.1.1 August 25th, 2020 3.1 August 11th, 2020 3.0.1 January 28th, 2020 3.0 August 14th, 2019 2.5.6 March 11th, 2019 2.5.5 April, 23rd 2018 2.5.4.1 March, 21st 2018 2.5.4 March, 5th 2018 2.5.3 November 12th, 2017
  • Fix - Colorpicker alpha break with WordPress 4.9
2.5.2.1 August 3rd, 2017
  • Fix - Options image upload not working in Pro, thanks Christopher for reporting this!
2.5.2 August 1st, 2017
  • Fix - Options compatibility issue with PHP 7.1, thanks Patrick for reporting this!
2.5.1 June 15th, 2017
  • Add - German Translation for Front End Text, thanks Andreas!
  • Add - cctor_is_coupon_taxonomy for checks if on a Coupon Taxonomy such as Category, Location, or Vendor
  • Tweak - the saniziation of the custom css to another function that is available before WordPress 4.7
  • Deprecate - Going forward all CSS selectors will use dashes instead of underscores, both are now including in the coding, but the underscores will be removed in a future version, please plan custom css accordingly
2.5 May 11th, 2017
  • Add - A new Admin UI to modernize the look and make it easier to organize related fields
  • Add - System Info Tab to get more details about a site setup for troubleshooting
  • Add - Template system and move default and image coupons as two free options
  • Add - License Key Activation and Deactivation from the Plugin List
  • Add - Default template option for new coupons
  • Add - Wisdom plugin for opt in to track plugin stats to help improve it
  • Change - The Styles tab to be border and background tab
  • Change - Move the field colors to be inline with the field they modify
  • Add - A safety check for the Plugin Engine Version
  • Add - A migration script to update existing coupons to the new template system
  • Fix - Warnings for File Time on Print Stylesheet
2.4 November 7th, 2016 2.3.1 August 16th, 2016
  • Fix - Translations not loading, thanks to cahaubold for bringing up this issue
2.3 June 7th, 2016
  • Add - expiration system as a new class to manage coupon display and expiration messages from a central source
  • Add - message on coupon options and the individual editor pages to inform the user if there is an error that needs to be troubleshooted with a link to the guide to start that process
  • Add - new expiration option with defaults to choose how the coupon will expired or if ignored
  • Add - script to update coupons to the new expiration option
  • Upgrade - The Help System to sort videos to respective tabs to make it easier to find help and add written guide links that are available.
  • Tweak - Move update scripts to their own class and add a update script for the new expiration class
  • Tweak - Move the admin column methods into their own class
  • Fix - search method from running on bbPress search results, thanks Dr Sagman for pointing this out
  • Deprecate - cctor_expiration_check, cctor_expiration_and_current_date, and method get_cctor_support_core_infomation
2.2.1 April 12th, 2016
  • Fix - deprecated notice for WordPress 4.5 from an unused function
  • Fix - conflict with bbPress, which caused forums, topics and replies to not show, thanks Dr Sagman!
  • Fix - capabilties not running on initial install
2.2 March 23rd, 2016
  • Add - a check for the role before adding the coupon capabilities to prevent invalid argument warnings in the foreach statement, thanks Maxim
  • Update - the capability system to match to existing capabilities to make it possible to modify Added defaults to the coupon option functions to enable critical fields to have a backup
  • Add - flush or permalinks on version upgrade to precent 404 errors
  • Add - option to prevent coupon creator from modifying the standard search query to remove coupons due to change in custom post type setup
2.1.2 December 7th, 2015
  • Fix - bug on option page tabs due to changes in 4.4
2.1.1 September 13th, 2015
  • Update - Text Domain
2.1 August 27th, 2015
  • Add - base CSS to the print view to present a better layout of the text with more options in Pro to change font size, weight, and family.
  • Add - option to disable the base CSS for the print view.
  • Add - constant to prevent all coupons from opening in new windows or tabs - define( 'CCTOR_PREVENT_OPEN_IN_NEW_TAB', true );
  • Add - PHP Date Validation when saving.
  • Add - define('CCTOR_HIDE_UPGRADE', true); to hide Pro Upgrade Notices.
  • Add - do_action( 'cctor_before_coupon_inner_wrap' , $coupon_id ); hook into the shortcode coupon.
  • Add - function to update old image border radius field to the outer border.
  • Add - update function to change the cctor_ignore_expiration value from on to 1 for older version upgrades.
  • Update - deal CSS to this class cctor_deal instead of targeting a heading tag directly to enable use of h3 tags in content.
  • Update combined sanitize functions into a class to enable future validation messages.
  • Update - Coupon Options Tabs and Coupon Meta Tabs to detect if saved by php and use that to determine what tab to return to after a save attempt instead of detecting if message div exists with jQuery.
  • Update - the styling of the Coupon Inserter based off new coding in Pro and added script to resize the thickbox based on the Content.
  • Fix - an issue with default options not saving with Pro and added sanitization for defaults.
  • Fix - custom permalinks change to make sure permalinks are flushed and the new slug is being used.
  • Fix - select option defaults to work again.
  • Fix - spelling on cctor_options_styles and cctor_options_scripts hooks.
2.0.3 May 21st, 2015
  • Fix - Coupon Inserter so categories show in dropdown
  • Fix - status variable undefined notices
  • Remove - the_content filter from terms and manually run each function to remove conflicts with other plugins such as JetPack
2.0.2 April 9th, 2015
  • Fix - tabs on reload of options or editor it returns you to the same tab
  • Update - wp_remote_get function with esc_url_raw on add_query_arg call
2.0.1 April 9th, 2015
  • Fix - so permalinks are flushed on activate and deactivate
  • Fix - undefined notice error when saving coupon options
2.0 April 8th, 2015
  • Add - column in coupon list to mention if the coupon is showing of not showing based on expiration date
  • Add - current date from this function current_time('mysql') under the expiration date for reference and date formats to the default format chosen in the options
  • Add - numeric check for image uploads instead of using text sanitize
  • Add - -webkit-print-color-adjust: exact; to the CSS to help print background colors in Webkit Browsers, does not work in FireFox or IE. The user has to choose to print background images and colors in the browser
  • Update - support fields in option and meta sections to use same information instead of four (4) different ones
  • Add - new styling to the support links
  • Add - coding to change Admin Tabs to Accordion when the div width cannot fit the tabs
  • Add - Option to remove wpautop from running on terms fields by default it is on thanks to this snippet - http://www.wpcustoms.net/snippets/remove-wpautop-custom-post-types/
  • Add - DONOTCACHEPAGE Constant to Print Template
  • Update - Colorbox to 1.5.14
  • Fix - Undefined property: stdClass::$delete_posts in Coupon List
  • Fix - save_post hook priority as some plugins caused the custom fields to not save
  • Fix - bug where Date Format does not save to Month First if Day First is the Default
  • Fix - textarea width
  • Remove - extract function from the WordPress Settings API functions and replaced with arrays instead, this removes the last use of the extract function from the Coupon Creator
1.90 November 20th, 2014
  • Add - a hook templating system to modify the shortcode and print templates
  • Add - coding for licenses
  • Add - hooks for Option and Meta additions from add ons
  • Update - Coupon List and Individual Coupon Information to make it easier to see the expiration
  • Add - more translation fields
  • Add - tab system for both Options and Meta fields to make it easier to edit
  • Add - coupon capabilities
  • Add - shortcode to the coupon editor page and to the coupon admin list
  • Add - Entire coupon a link
1.80 July 7th, 2014
  • Add - Expiration Date and If Ignore Expiration is on to the Coupon Listing
  • Add - class for Options including, Custom CSS, Default, Colors, nofollow on print link, hide print link, improved permalink
  • Add - new options for all coupons including adding custom CSS.
  • Add - class to manage meta fields
  • Add - various hooks and filters to upcoming
  • Update - image size to only set the width of image and allow for different heights
  • Update - Version check to alert message to make it more noticeable
  • Fix - Permalink Flush on Activation of Plugin
  • Fix - filemtime error on Windows Servers for the Print Template
1.70 April 4th, 2014
  • Update - entire plugin to Object-oriented programming
  • Update - Color Picker to lastest version
  • Update - Change Image Uploader to the latest version of WordPress Media Uploader
  • Add - Setting Page with ability to change slug of coupon permalinks
  • Add - custom columns to list view of all coupons
  • Add - localization for admin and frontend
  • Fix - Deprecated php split function
1.60 March, 5th 2015
  • Update - Styling to make the coupons more flexible in size
  • Update - and Added Responsive Styling with basic support still for IE7
  • Add - a html comment that shows when a coupon is expired
  • Add - version numbers to the scripts and stylesheets
  • Add - New Q&A to the FAQ
  • Update - Colorbox to 1.4.37
  • Update - the single_template filter to template_include that was causing 404 errors in some themes
1.50 February 13th, 2014
  • Add - Translation using the standard WordPress method
  • Add - Spanish Translation thanks to Carmen in Miami
  • Update - Coding to prepare for a rewrite
1.45 October 23rd, 2013
  • Fix - issue where check box uncheck does not save.
1.41 August, 20th 2013
  • Add - Post Reset Function to the shortcode to fix an issue preventing comments from showing
1.40 August 14th, 2013
  • Add - a loop option to the shortcode to display more then one coupon
  • Add - coupon categories to use with the loop option of the shortcode
  • Fix - css for box-sizing: content-box for the coupons or in themes like Twenty Thirteen the styling broke
  • Add - plugin version into WordPress Database options for future updates
  • Update - Colobox script and fixed background images
1.37 January 6th, 2013
  • Fix - SVN to latest version
1.35 January 6th, 2013
  • Update - Insert Coupon Icon on Editor for WordPress 3.5
  • Add - CSS for inside .widget-wrap to fit 100% into space
  • Add - Coupon Images are now links to larger view. Thanks to the coding from Darin of VzPro
  • Update - the Click to Open in Print View font a little larger
1.31
  • Update - Click to Open in New Window Coding so it will open new window without javascript. (Note this may not open a new window in all browsers.)
1.30 July 21st, 2012
  • Add - checkbox to ignore expiration date so coupon will always display one website
  • "Expire On" will not show if no expiration is added
  • Add - some more comments to coding and fixed line spacing issue
  • Add - donation link
1.20 July 16th, 2012
  • Fix - fixes to remove php notices in shortcode and in meta box
1.1.5
  • Fix - SVN to latest version
1.1
  • Fix - Fixes preventing images, js, and css from loading - Thanks for heads up from Tom Ewer of WPMU.org
1.0 July 8th, 2012
  • Initial Release and 1st Version and 1st Plugin!