{"id":137070,"date":"2021-02-25T00:34:03","date_gmt":"2021-02-25T00:34:03","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/coupon-by-user-role-for-woocommerce\/"},"modified":"2025-09-03T16:18:10","modified_gmt":"2025-09-03T16:18:10","slug":"coupon-by-user-role-for-woocommerce","status":"publish","type":"plugin","link":"https:\/\/ca.wordpress.org\/plugins\/coupon-by-user-role-for-woocommerce\/","author":18216844,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_crdt_document":"","version":"2.2.1","stable_tag":"2.2.1","tested":"6.8.5","requires":"4.4","requires_php":"","requires_plugins":null,"header_name":"Coupon by User Role for WooCommerce","header_author":"WPFactory","header_description":"WooCommerce coupons by user roles.","assets_banners_color":"d1cdf8","last_updated":"2025-09-03 16:18:10","external_support_url":"","external_repository_url":"","donate_link":"","header_plugin_uri":"https:\/\/wpfactory.com\/item\/coupon-by-user-role-for-woocommerce\/","header_author_uri":"https:\/\/wpfactory.com","rating":0,"author_block_rating":0,"active_installs":70,"downloads":3664,"num_ratings":0,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","changelog"],"tags":{"1.3.0":{"tag":"1.3.0","author":"algoritmika","date":"2021-02-25 00:34:46"},"1.4.0":{"tag":"1.4.0","author":"algoritmika","date":"2021-07-24 15:55:35"},"2.0.0":{"tag":"2.0.0","author":"algoritmika","date":"2021-08-25 16:31:57"},"2.0.1":{"tag":"2.0.1","author":"algoritmika","date":"2022-04-13 15:31:10"},"2.0.2":{"tag":"2.0.2","author":"wpcodefactory","date":"2022-11-14 19:54:17"},"2.0.3":{"tag":"2.0.3","author":"wpcodefactory","date":"2023-06-18 17:46:37"},"2.0.4":{"tag":"2.0.4","author":"wpcodefactory","date":"2023-09-24 16:40:01"},"2.1.0":{"tag":"2.1.0","author":"wpcodefactory","date":"2023-11-14 09:50:40"},"2.1.1":{"tag":"2.1.1","author":"wpcodefactory","date":"2024-07-30 07:27:08"},"2.2.0":{"tag":"2.2.0","author":"wpcodefactory","date":"2025-06-25 12:08:14"},"2.2.1":{"tag":"2.2.1","author":"wpcodefactory","date":"2025-09-03 16:18:10"}},"upgrade_notice":{"1.0.0":"<p>This is the first release of the plugin.<\/p>"},"ratings":[],"assets_icons":{"icon-128x128.png":{"filename":"icon-128x128.png","revision":2970923,"resolution":"128x128","location":"assets","locale":""},"icon.svg":{"filename":"icon.svg","revision":2970923,"resolution":false,"location":"assets","locale":false}},"assets_banners":{"banner-1544x500.png":{"filename":"banner-1544x500.png","revision":2970923,"resolution":"1544x500","location":"assets","locale":""},"banner-772x250.png":{"filename":"banner-772x250.png","revision":2970923,"resolution":"772x250","location":"assets","locale":""}},"assets_blueprints":{},"all_blocks":[],"tagged_versions":["1.3.0","1.4.0","2.0.0","2.0.1","2.0.2","2.0.3","2.0.4","2.1.0","2.1.1","2.2.0","2.2.1"],"block_files":[],"assets_screenshots":[],"screenshots":[],"jetpack_post_was_ever_published":false},"plugin_section":[],"plugin_tags":[326,282,1925,286],"plugin_category":[45],"plugin_contributors":[78783,80665,178791,189606],"plugin_business_model":[216238],"class_list":["post-137070","plugin","type-plugin","status-publish","hentry","plugin_tags-coupon","plugin_tags-ecommerce","plugin_tags-user-role","plugin_tags-woocommerce","plugin_category-ecommerce","plugin_contributors-anbinder","plugin_contributors-karzin","plugin_contributors-omardabbas","plugin_contributors-wpcodefactory","plugin_business_model-commercial","plugin_committers-algoritmika","plugin_committers-wpcodefactory","plugin_support_reps-anbinder","plugin_support_reps-karzin","plugin_support_reps-tahaamin"],"banners":{"banner":"https:\/\/ps.w.org\/coupon-by-user-role-for-woocommerce\/assets\/banner-772x250.png?rev=2970923","banner_2x":"https:\/\/ps.w.org\/coupon-by-user-role-for-woocommerce\/assets\/banner-1544x500.png?rev=2970923","banner_rtl":false,"banner_2x_rtl":false},"icons":{"svg":"https:\/\/ps.w.org\/coupon-by-user-role-for-woocommerce\/assets\/icon.svg?rev=2970923","icon":"https:\/\/ps.w.org\/coupon-by-user-role-for-woocommerce\/assets\/icon.svg?rev=2970923","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p><strong>Coupon by User Role for WooCommerce<\/strong> is a lightweight plugin that lets you:<\/p>\n\n<ul>\n<li><strong>Disable<\/strong> or <strong>invalidate<\/strong> selected (or all) <strong>coupons<\/strong> for selected user role(s).<\/li>\n<li>Set <strong>coupon amount<\/strong> per user role.<\/li>\n<\/ul>\n\n<h3>\u2705 Coupon Availability by User Role<\/h3>\n\n<p><strong>Disable all coupons for selected user roles<\/strong> - This will disable all coupons for selected user roles. Coupons will be disabled completely, including coupon code input field on the cart and checkout pages.<\/p>\n\n<p><strong>Invalidate selected (or all) coupons for selected user roles<\/strong> - This will invalidate selected (or all) coupons for selected user roles. Coupon code input field will still be available on the cart and checkout pages. In case if user with \"wrong\" user role will try to apply the coupon, plugin will display customizable \"Coupon is not valid for your user role\" message on frontend.<\/p>\n\n<h3>\u2705 Coupon Amount by User Role<\/h3>\n\n<p>Sets <strong>coupon amount<\/strong> per user role.<\/p>\n\n<h3>\ud83c\udfc6 Premium Version<\/h3>\n\n<p>Free plugin version includes \"standard\" user roles only: Guest, Administrator, Editor, Author, Contributor, Subscriber, Customer, Shop manager. If you need all your site's custom user roles to be included, you'll need <a href=\"https:\/\/wpfactory.com\/item\/coupon-by-user-role-for-woocommerce\/\">Coupon by User Role for WooCommerce Pro<\/a> plugin version.<\/p>\n\n<h3>\ud83d\uddd8 Feedback<\/h3>\n\n<ul>\n<li>We are open to your suggestions and feedback. Thank you for using or trying out one of our plugins!<\/li>\n<li><a href=\"https:\/\/wpfactory.com\/item\/coupon-by-user-role-for-woocommerce\/\">Visit plugin site<\/a>.<\/li>\n<\/ul>\n\n<h3>\u2139 More<\/h3>\n\n<ul>\n<li>The plugin is <strong>\"High-Performance Order Storage (HPOS)\"<\/strong> compatible.<\/li>\n<\/ul>\n\n<!--section=installation-->\n<ol>\n<li>Upload the entire plugin folder to the <code>\/wp-content\/plugins\/<\/code> directory.<\/li>\n<li>Activate the plugin through the \"Plugins\" menu in WordPress.<\/li>\n<li>Start by visiting plugin settings at \"WPFactory &gt; Coupon by User Role\".<\/li>\n<\/ol>\n\n<!--section=changelog-->\n<h4>2.2.1 - 03\/09\/2025<\/h4>\n\n<ul>\n<li>WC tested up to: 10.1.<\/li>\n<\/ul>\n\n<h4>2.2.0 - 25\/06\/2025<\/h4>\n\n<ul>\n<li>Fix - Translation loading fixed.<\/li>\n<li>Dev - Security - Output escaped.<\/li>\n<li>Dev - Security - Input sanitized.<\/li>\n<li>Dev - Security - Nonces added.<\/li>\n<li>Dev - Plugin settings moved to the \"WPFactory\" menu.<\/li>\n<li>Dev - WPFactory \"Recommendations\" added.<\/li>\n<li>Dev - WPFactory \"Key Manager\" added.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>Dev - Coding standards improved.<\/li>\n<li>WC tested up to: 9.9.<\/li>\n<li>Tested up to: 6.8.<\/li>\n<\/ul>\n\n<h4>2.1.1 - 30\/07\/2024<\/h4>\n\n<ul>\n<li>WC tested up to: 9.1.<\/li>\n<li>Tested up to: 6.6.<\/li>\n<\/ul>\n\n<h4>2.1.0 - 14\/11\/2023<\/h4>\n\n<ul>\n<li>Dev \u2013 \"High-Performance Order Storage (HPOS)\" compatibility.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>WC tested up to: 8.2.<\/li>\n<li>Tested up to: 6.4.<\/li>\n<\/ul>\n\n<h4>2.0.4 - 24\/09\/2023<\/h4>\n\n<ul>\n<li>WC tested up to: 8.1.<\/li>\n<li>Tested up to: 6.3.<\/li>\n<li>Plugin icon, banner updated.<\/li>\n<\/ul>\n\n<h4>2.0.3 - 18\/06\/2023<\/h4>\n\n<ul>\n<li>WC tested up to: 7.8.<\/li>\n<li>Tested up to: 6.2.<\/li>\n<\/ul>\n\n<h4>2.0.2 - 14\/11\/2022<\/h4>\n\n<ul>\n<li>WC tested up to: 7.1.<\/li>\n<li>Tested up to: 6.1.<\/li>\n<li>Readme.txt updated.<\/li>\n<li>Deploy script added.<\/li>\n<\/ul>\n\n<h4>2.0.1 - 13\/04\/2022<\/h4>\n\n<ul>\n<li>Tested up to: 5.9.<\/li>\n<li>WC tested up to: 6.4.<\/li>\n<\/ul>\n\n<h4>2.0.0 - 25\/08\/2021<\/h4>\n\n<ul>\n<li>Dev - \"Amounts\" section added.<\/li>\n<li>Dev - Per coupon settings redesigned. Now all options are in \"Coupon data\" tabs (instead of in meta boxes).<\/li>\n<li>Dev - General settings section renamed to \"Availability\". Settings descriptions updated.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>WC tested up to: 5.6.<\/li>\n<\/ul>\n\n<h4>1.4.0 - 24\/07\/2021<\/h4>\n\n<ul>\n<li>Dev - \"Exceptions\" options added (to \"All Coupons: Disable\", \"All Coupons: Invalidate\" and \"Per coupon\").<\/li>\n<li>Dev - Admin settings - \"Select all\" and \"Deselect all\" buttons added.<\/li>\n<li>Dev - Plugin is initialized on <code>plugins_loaded<\/code> action now.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>WC tested up to: 5.5.<\/li>\n<li>Tested up to: 5.8.<\/li>\n<\/ul>\n\n<h4>1.3.0 - 25\/02\/2021<\/h4>\n\n<ul>\n<li>Dev - Free plugin version released.<\/li>\n<li>Dev - Message - Placeholders added: <code>%coupon_code%<\/code>, <code>%coupon_amount%<\/code>.<\/li>\n<li>Dev - Meta Boxes - All input is sanitized now before saving.<\/li>\n<li>Dev - Localisation - <code>load_plugin_textdomain()<\/code> function moved to the <code>init<\/code> action.<\/li>\n<li>Dev - Admin settings descriptions updated.<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>WC tested up to: 5.0.<\/li>\n<li>Tested up to: 5.6.<\/li>\n<\/ul>\n\n<h4>1.2.0 - 26\/07\/2019<\/h4>\n\n<ul>\n<li>Dev - Code refactoring.<\/li>\n<li>Dev - Admin settings descriptions updated.<\/li>\n<li>WC tested up to: 4.0.<\/li>\n<li>Tested up to: 5.3.<\/li>\n<\/ul>\n\n<h4>1.1.0 - 26\/07\/2019<\/h4>\n\n<ul>\n<li>Dev - Now checking all user's roles (instead of only first role).<\/li>\n<li>Dev - Shortcodes are now processed in \"Message\"; language shortcode <code>[alg_wc_cbur_translate]<\/code> added (for WPML\/Polylang).<\/li>\n<li>Dev - Code refactoring.<\/li>\n<li>WC tested up to: 3.6.<\/li>\n<li>Tested up to: 5.2.<\/li>\n<\/ul>\n\n<h4>1.0.0 - 11\/06\/2018<\/h4>\n\n<ul>\n<li>Initial Release.<\/li>\n<\/ul>","raw_excerpt":"WooCommerce coupons by user roles.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/137070","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=137070"}],"author":[{"embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/wpcodefactory"}],"wp:attachment":[{"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=137070"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=137070"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=137070"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=137070"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=137070"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/ca.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=137070"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}