Coupon Creator Pro 2.4 Development Notes

Coupon Creator Pro 2.4 is a refactor of the code base using Modern Tribe’s Common plugin used in The Events Calendar. The goal of the refactor was to reduce duplicate coding, use an autoloader, and organize all the files.

The first step was rename the common plugin into the Plugin Engine or pngx for short. Then, I stripped out much of the coding that was event related and started with the Autoloader and some of useful methods. My goal is the use the pngx as the base for the Settings and Meta Fields for Coupon Creator and Coupon Creator Pro. By running everything through pngx I am able to cut back on having duplicate fields. In the previous editions, I had two of everything for the the settings and meta fields.

From there I moved everything that was shared or duplicated between Coupon Creator and Coupon Creator Pro into pngx this included, EDD’s software license updater class, option class, meta class, custom post type creator class, custom taxonomy create class,santize class, allowed tags class, asset loading class, and all the fields such as checkbox to visual editor.

While building pngx I was actively building the Coupon Creator around it as one needs the other to work correctly. It ended being an entire refactor of all the coding, but with similar front end templates and related functions. Another goal was to separate css and js and make pngx’s the base so that Coupon Creator could use it as a starting point.

After wrapping up pngx and Coupon Creator, I refactored Pro and integrated it so it works with both pngx and Coupon Creator. Once complete, I tested the new code base by adding new features. Adding the Range Expiration and Exclude Category features proved to be far easier to add and in less time than anticipated. For that reason, I believe the refactor has already been a success in making it easier to add new features and look forward to coding them in the next releases as well as creating new plugins in the future.

For more information about the Coupon Creator Pro check out its site!

Coupon Creator 2.3 and Coupon Creator Pro 2.3!

Coupon Creator 2.3 and Coupon Creator Pro 2.3 are released with a refactor to the expiration and help systems along with adding quick and bulk edits.

Expiration Class
I have improved the old expiration system and method throughout the two plugins. Now the expiration system is now contained within two classes. This enables the Coupon Creator coding to turn to one source for all the expiration and counter information throughout the various areas it is used.

In the future, it will be easier to make improvements as the coding is all in one place and to add new expiration methods. For 2.3, a new method was added to expire a coupon in x days so if you visit a site, it will give you an expiration period of 1 month, 2 months, or a number of days you would like.

Help Class
The old help class needed to be revised in order to make improvements in the future. I changed it into a new class that is dynamic and easier to add resources and display them on specific tabs. Overall this provides one area to update this information in future releases and makes it easier to direct where to display.

Quick and Bulk Edits
This was an interesting challenge to add the Coupon Creator Pro. The goal here was to be able to edit expiration and counter fields per coupon or for a group of coupons in the admin list.

I found a great tutorial to begin this feature called Manage WordPress Posts Using Bulk Edit and Quick Edit. From there, I took pieces from the existing custom field class in Coupon Creator and merged them together. This made the system modular so it is easier to add fields without having to hard code each one in place.

Finally the Coupon Creator is using scss to organize and manage the admin css with plans to use it in the future for all front end css.

Coupon Creator Pro 2.2 Released!

Coupon Creator Pro 2.2 is out with the first steps to more coupon management.

Overview of the new shortcode, filters, and template system.

Themer’s Guide Intro

Pro 2.2 Change Log

  • Add couponloop shortcode to display the new default template in pro with filter bar
  • Add function to prevent another coupon loop shortcode from running
  • Add templating system for all coupon in Pro to be able to make modifications in a theme
  • Add filter bar for new loop to change coupons per page, and categories, category match, order along with reset button
  • Add new options to choose settings for templates and choose main coupon page
  • Add filter bar and columns breakpoint options
  • Add Salvattore Script to control columns for new couponloop shortcode and category templates
  • Added a filter to show the Coupon Categories in the WordPress Nav Editor
  • Added a category template in Pro, coupons show in Parent Category when checked for Sub Category
  • Add body class coupon-category-template when using Coupon Creators category template
  • Add option to select template for coupon categories
  • Add option to change category archive slug
  • Add custom term templates for coupon categories, category/slug/single-events, category/slug/loop.php
  • Add default for popup dimensions to make sure the popup always resizes
  • Add modified version of select2 4.0.1 to use on options that fixes having square brackets in the select field name
  • Add flush or permalinks on version upgrade to help prevent 404 errors

Core 2.2 Change Log

  • Added a check for the role before adding the coupon capabilities to prevent invalid argument warnings in the foreach statement, thanks Maxim
  • Changed 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
  • Added option to prevent coupon creator from modifying the standard search query to remove coupons due to change in custom post type setup

The Hidden Benefits of Difficult Customers

Slides from the Presentation at WordCamp Orlando & WordPress DC.

Supporting Free Plugins on and Commercial Products has its challenges. Yet, when handled properly, even the most challenging of exchanges can benefit your product as well as positively market your solution to potential customers. In this talk, I will go over setting expectations, watching out for the curse of knowledge, and how to “trust but verify.”

I will go over the types of questions to ask in support threads in order to get to the bottom of an issue. Additionally, I will go over how to respond to the shoulds, the lashers, exergatertors, and unreasonables, along with the regular usage support to benefit you and your customers. This will include going over examples including how the support team turned a review titled “Run Away From This You Won’t Regret It” into a positive review and many more. The last part of talk will go over some ways to reduce support and go over support tools such as forums versus email.

WordPress Plugins to help with Support

  • Plugin Logic – deactivate plugin based on url
  • Plugin Organizer –  Change the order that your plugins are loaded and selectively disable plugins by any post type
  • Bulk Deactivate
  • Query Monitor – Debugging plugin with performance information on database queries, hooks, conditionals, HTTP requests, redirects and more
  • WP Crontrol – Check on scheduled WordPress cron jobs and manually run
  • WP Theme Test – Change theme for logged in user

Browser Extensions


  • Centralized Location to bring in support requests
  • Import Plugin Support RSS Feed from
  • Email
  • Form Entries

Coupon Creator Pro 2.1 Released!

2.1 is out with border themes, recurring expiration, columns and rows inserter, and an update coupon inserter with search capabilities!

Coupon Border Examples

Coupon Creator Pro 2.1 Features and Updates:

  • Border themes, Dotted Border, Stitched Border, Saw Tooth Border (modern browsers and IE 10+), and None Option
  • Recurring Expiration; set an expiration for the end of the month and have it automatically change to the end of the next month
  • Recurring Expiration includes different patterns to recur as well as limits to how many times it does recur
  • Ability to insert columns and rows into the content editor. Options include, two column combinations, three column combinations, four columns, and rows
  • The new Pro Inserter has the ability to search coupons and categories in the dropdown
  • Hide the Click to Open in Print View link as a default for new coupons and disable per coupon
  • Added Option to choose Font Family and Font Weight for Print View text and headings.
  • All the details can be found in the plugin readme.txt or on the release notes blog

Check out the live coupon demo of these features an more.

Coupon Creator Pro 2.00 Released!

Coupon Creator Pro 2.0 has been released with the following new features:

  • An improved Visual Editor to easily style the term’s content on your site
  • Display the Print View in a Popup for any coupons and print directly from the Popup
  • Use the View Shortcodes to display content in the Shortcode View or the Print View only
  • Disable the Print View per coupon
  • Add your Google Analytics Code to the Print Template from the Coupon Options
  • Create and Display WooCommerce Coupons from the Coupon Creator Editor

Those add to the existing Pro Features:

  • Set a Counter per coupon to expire the coupon after a limit has been reached
  • Change “Expires on:”, “Click to Open in Print View”, and “Print the Coupon” for all coupons
  • Set coupon size for the Shortcode View and the Print View for all coupons including the Image Coupon
  • Override “Click to Open in Print View” text and link per coupon
  • Override “Print the Coupon” text and link per coupon

Want to see some of these features live? Check out the Feature Demos at:

Support Updates

In addition to the improvements mentioned above, this release adds more support articles to help you navigate the new features and other aspects of using the plugins. The videos include:

  • How to Hide the Deal in any Coupon View
  • Setup Google Analytics for Print View
  • How to Open the Print Template in a Pop Up Box
  • How to turn on wpautop in the Coupon Creator
  • How to create WooCommerce Coupons
  • How to use the Display Shortcodes ShowHook and ShowPrint
  • How to upload and Install Coupon Creator Pro by WordPress, FTP, or cPanel
  • Where do I add my license key?

You can find links to each of these articles or videos here:

Initial Release for Coupon Creator Pro

This marks the release of my first commercial plugin for WordPress, the Coupon Creator Pro an add on for the Coupon Creator release on November 20th, 2014.

Pro is about adding new features requested by users, but those features demand a level of support a free plugin cannot maintain so I created a commercial plugin.

Some of the initial features for Pro are custom coupon sizing, coupon counter, text renaming, custom links, and more options to edit and style the coupons.

You can get for more information @

Genesis Framework and Why You Might Want To Use It or Not!

An overview of Genesis Framework for WordPress and why I use it and where I might not use it when developing websites.

Facebook Groups (great resources, but please search 2 to 3 times first before posting a question)

Genesis WordPress

Advanced WordPress

WordPress Help and Share

*Requires Membership

This presentation was given at WordPressDC on October 14th 2014.

Coupon Creator 1.81 Released!

Coupon Creator 1.81 is up on, this update is preparing for a Pro version of the Coupon Creator.

The two main focuses for this update are the Options Page and the Meta Fields, both of which were turned into Classes.

This is also fixes one of the major problems I had with 1.70 was that sanitization had to be added for each field and could not be shared, this is now done by the field type. The Options page was overhauled for a better look with a tab interface to make it easier to group options together.

The new options added to the Coupon Creator are:

  • Choose Default Colors for New Coupons for the Border, Discount Text, and Discount Background.
  • Option to Hide the Click to Print Link
  • Option to add or remove nofollow on the Click to Print Link and Print Template (on by default)
  • Option for Custom CSS to be added with the Coupons or on the Print Template
  • Option to Reset to Default

Coupon Creator Version 1.70

This version is a complete rewrite of the plugin to Object-oriented programming and was done to get ready for a Pro Version with many new features. In the process of rewriting, I updated the color picker script and changed to the latest WordPress Media Uploaded for the Coupon Image Upload.

I also, fixed some errors in addition, to changing the deprecated php split function. Localization is nwo expanded to include the admin area, however, the only translation right now is for Spanish on the front-end. The settings page is a new addition so admins can change the default permalinks for the coupons. The final update is to add custom columns to the list view so users can tell expiration dates and if it is set to ignore them.

The next version will also have a pro version with these features in the works, including: a visual editor to make coupons, background coupon images, editable link texts, more themes, more control from the settings page, custom css, premium support, and more! More details as the that version approaches beta.