{"id":121042,"date":"2020-05-04T22:24:11","date_gmt":"2020-05-04T22:24:11","guid":{"rendered":"https:\/\/de.wordpress.org\/plugins\/edd-coupon-counter\/"},"modified":"2023-11-30T11:44:20","modified_gmt":"2023-11-30T11:44:20","slug":"edd-coupon-counter","status":"publish","type":"plugin","link":"https:\/\/mri.wordpress.org\/plugins\/edd-coupon-counter\/","author":15013885,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"1.0.3","stable_tag":"1.0.3","tested":"6.4.8","requires":"4.6","requires_php":"","requires_plugins":null,"header_name":"Coupon Counter for EDD","header_author":"David Vongries","header_description":"Create a Custom WordPress Dashboard.","assets_banners_color":"2794d9","last_updated":"2023-11-30 11:44:20","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"","header_author_uri":"https:\/\/davidvongries.com\/","rating":0,"author_block_rating":0,"active_installs":10,"downloads":4093,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"1.0":{"tag":"1.0","author":"davidvongries","date":"2021-09-13 10:35:31"},"1.0.1":{"tag":"1.0.1","author":"davidvongries","date":"2022-12-07 11:49:51"},"1.0.2":{"tag":"1.0.2","author":"davidvongries","date":"2023-02-03 01:17:27"},"1.0.3":{"tag":"1.0.3","author":"davidvongries","date":"2023-11-30 11:44:20"}},"upgrade_notice":[],"ratings":[],"assets_icons":{"icon-256x256.png":{"filename":"icon-256x256.png","revision":2682571,"resolution":"256x256","location":"assets","locale":"","width":256,"height":256}},"assets_banners":{"banner-1544x500.jpg":{"filename":"banner-1544x500.jpg","revision":2682569,"resolution":"1544x500","location":"assets","locale":"","width":1544,"height":500},"banner-772x250.jpg":{"filename":"banner-772x250.jpg","revision":2682569,"resolution":"772x250","location":"assets","locale":"","width":772,"height":250}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.0","1.0.1","1.0.2","1.0.3"],"block_files":[],"assets_screenshots":{"screenshot-1.jpg":{"filename":"screenshot-1.jpg","revision":2298083,"resolution":"1","location":"assets","locale":"","width":1319,"height":741}},"screenshots":{"1":"Coupon Counter for EDD in action"}},"plugin_section":[],"plugin_tags":[5484,2665,185287,26353,185286],"plugin_category":[],"plugin_contributors":[125518],"plugin_business_model":[],"class_list":["post-121042","plugin","type-plugin","status-publish","hentry","plugin_tags-easy-digital-downloads","plugin_tags-edd","plugin_tags-edd-counter","plugin_tags-edd-discount","plugin_tags-edd-discounts","plugin_contributors-davidvongries","plugin_committers-davidvongries"],"banners":{"banner":"https:\/\/ps.w.org\/edd-coupon-counter\/assets\/banner-772x250.jpg?rev=2682569","banner_2x":"https:\/\/ps.w.org\/edd-coupon-counter\/assets\/banner-1544x500.jpg?rev=2682569","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":false,"icon":"https:\/\/ps.w.org\/edd-coupon-counter\/assets\/icon-256x256.png?rev=2682571","icon_2x":"https:\/\/ps.w.org\/edd-coupon-counter\/assets\/icon-256x256.png?rev=2682571","generated":false},"screenshots":[{"src":"https:\/\/ps.w.org\/edd-coupon-counter\/assets\/screenshot-1.jpg?rev=2298083","caption":"Coupon Counter for EDD in action"}],"raw_content":"<!--section=description-->\n<p><strong>Coupon Counter for Easy Digital Downloads (EDD)<\/strong> is a simple but useful plugin that allows you to dynamically display the remaining or used coupon codes.<\/p>\n\n<h4>Display messages like:<\/h4>\n\n<ul>\n<li>Only 128 coupons remaining!<\/li>\n<li>34\/200 discount codes used!<\/li>\n<\/ul>\n\n<h3>Shortcode<\/h3>\n\n<p>Easily display the count of remaining and used coupon codes using the shortcode below.<\/p>\n\n<pre><code>[cc-edd id=\"discount-id\" format=\"countdown\/count\"]\n<\/code><\/pre>\n\n\n\n<h3>Examples<\/h3>\n\n<pre><code>Only [cc-edd id=\"293\" format=\"countdown\"] coupons left!\n<\/code><\/pre>\n\n<p>Will result in: <strong>Only xxx coupons left!<\/strong><\/p>\n\n<pre><code>[cc-edd id=\"293\" format=\"count\"] discount codes used!\n<\/code><\/pre>\n\n<p>Will result in: <strong>xx\/xxx discount codes used!<\/strong><\/p>\n\n<h3>Advanced<\/h3>\n\n<p>There is a filter available for the \"count\" display format that allows you to change the separator icon as desired.<\/p>\n\n<p>For example, you can change the \"\/\" separator to \"of\".<\/p>\n\n<pre><code>function prefix_custom_cc_edd_divider() {\n    return ' of ';\n}\nadd_filter( 'cc_edd_divider', 'prefix_custom_cc_edd_divider' );\n<\/code><\/pre>\n\n<p>Following the example above, this would result in:\n<strong>xx of xxx discount codes used!<\/strong><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the edd-coupon-counter.zip file to your computer.<\/li>\n<li>Unzip the file.<\/li>\n<li>Upload the <code>edd-coupon-counter<\/code> folder to your <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the <em>Plugins<\/em> menu in WordPress.<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id='where%20do%20i%20get%20the%20discount%20id%20from%3F'><h3>Where do I get the discount ID from?<\/h3><\/dt>\n<dd><p>You can access a list of all your discounts in the <code>Downloads &gt; Discount Codes<\/code> section. When hovering over the \"Edit\" link for one of your discounts, the URL will be displayed in the bottom left corner of your browser.<\/p>\n\n<p>The URL will look something like this: https:\/\/yourwebsite.com\/wp-admin\/edit.php?post_type=download&amp;page=edd-discounts&amp;edd-action=edit_discount&amp;discount=293.<\/p>\n\n<p>You can locate the discount ID at the end of the URL. In this example, the ID is <strong>293<\/strong>.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>1.0.3 | November 30, 2023<\/h4>\n\n<ul>\n<li>Tested up to WordPress 6.4<\/li>\n<\/ul>\n\n<h4>1.0.2 | February 03, 2023<\/h4>\n\n<ul>\n<li>Minor wording tweaks<\/li>\n<\/ul>\n\n<h4>1.0.1 | December 07, 2022<\/h4>\n\n<ul>\n<li>Tested up to WordPress 6.1 &amp; EDD 3.0<\/li>\n<\/ul>\n\n<h4>1.0 | May 02, 2020<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Easily display the remaining or used coupon codes with Easy Digital Downloads (EDD).","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/121042","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=121042"}],"author":[{"embeddable":true,"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/davidvongries"}],"wp:attachment":[{"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=121042"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=121042"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=121042"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=121042"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=121042"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/mri.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=121042"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}