{"id":2137,"date":"2023-08-18T12:17:06","date_gmt":"2023-08-18T12:17:06","guid":{"rendered":"https:\/\/addify.store\/documentation\/?page_id=2137"},"modified":"2023-08-18T12:17:07","modified_gmt":"2023-08-18T12:17:07","slug":"how-to-restrict-referrers-by-user-roles","status":"publish","type":"page","link":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/","title":{"rendered":"How to Restrict Referrers by User Roles?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Restricting Referrers by User Roles<\/h2>\n\n\n\n<p>Using the WooCommerce Refer a Friend plugin, you can restrict referral by user roles for both types of discounts:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Referrer Discount&nbsp;<\/li>\n\n\n\n<li>Referee Discount<\/li>\n<\/ul>\n\n\n\n<p>Go to <strong>WooCommerce <\/strong>&gt; <strong>Refer a Friend<\/strong>. Here you can configure general user role settings for both referrer and referee discounts.&nbsp;<\/p>\n\n\n\n<p><strong>To Restrict Referrer Discount based on User Roles:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to Referrer Discount settings.<\/li>\n\n\n\n<li>Checkmark to enable discount for the referrer.<\/li>\n\n\n\n<li>Go to \u2018User Roles\u2019 to specify user roles who can refer friends and earn discounts <em>(Leave empty to enable it for all users).<\/em><\/li>\n\n\n\n<li>Choose from the following user roles:\n<ol class=\"wp-block-list\">\n<li>Administrator<\/li>\n\n\n\n<li>&nbsp;Editor<\/li>\n\n\n\n<li>&nbsp;Author<\/li>\n\n\n\n<li>&nbsp;Contributor<\/li>\n\n\n\n<li>&nbsp;Subscriber<\/li>\n\n\n\n<li>&nbsp;Customer<\/li>\n\n\n\n<li>&nbsp;Shop manager<\/li>\n\n\n\n<li>&nbsp;Wholesale<\/li>\n\n\n\n<li>&nbsp;B2B<\/li>\n\n\n\n<li>&nbsp;Retailer<\/li>\n<\/ol>\n<\/li>\n\n\n\n<li>After selecting the allowed user roles and excluding the restricted user roles, save the changes to apply the new settings.<\/li>\n<\/ol>\n\n\n\n<p><strong>To Restrict Referee Discount based on User Roles:<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Go to Referee Discount settings.<\/li>\n\n\n\n<li>Checkmark to enable discount for a referee.<\/li>\n\n\n\n<li>Go to \u2018User Roles\u2019 to specify user roles who can use the referral code (<em>Leave it empty to enable it for all users).<\/em><\/li>\n\n\n\n<li>Choose from the following user roles:<\/li>\n<\/ol>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Administrator<\/li>\n\n\n\n<li>&nbsp;Editor<\/li>\n\n\n\n<li>&nbsp;Author<\/li>\n\n\n\n<li>&nbsp;Contributor<\/li>\n\n\n\n<li>&nbsp;Subscriber<\/li>\n\n\n\n<li>&nbsp;Customer<\/li>\n\n\n\n<li>&nbsp;Shop manager<\/li>\n\n\n\n<li>&nbsp;Wholesale<\/li>\n\n\n\n<li>&nbsp;B2B<\/li>\n\n\n\n<li>&nbsp;Retailer<\/li>\n<\/ol>\n\n\n\n<p>5. After selecting the allowed user roles and excluding the restricted user roles, save the changes to apply the new settings.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh4.googleusercontent.com\/5csb0VKJSNYqZYn4I2r-7NgqTz7X6LucaIzmN-94gX8F4hTD3SCs3i8wMYDGS3kDWvunASlpww1hcvch-3HKO511ozLwqDfQ9qq8GQxPLsxn27nz3qR955moyVYaomLxkz_qToBiRVDHWPQMzdCG564\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Restricting Referrers by User Roles Using the WooCommerce Refer a Friend plugin, you can restrict referral by user roles for both types of discounts: Go to WooCommerce &gt; Refer a Friend. Here you can configure general user role settings for both referrer and referee discounts.&nbsp; To Restrict Referrer Discount based on User Roles: To Restrict [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2129,"menu_order":4,"comment_status":"closed","ping_status":"closed","template":"template-parts\/multiple-page-template.php","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-2137","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Restrict Referrers by User Roles? - Documentation<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Restrict Referrers by User Roles? - Documentation\" \/>\n<meta property=\"og:description\" content=\"Restricting Referrers by User Roles Using the WooCommerce Refer a Friend plugin, you can restrict referral by user roles for both types of discounts: Go to WooCommerce &gt; Refer a Friend. Here you can configure general user role settings for both referrer and referee discounts.&nbsp; To Restrict Referrer Discount based on User Roles: To Restrict [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2023-08-18T12:17:07+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lh4.googleusercontent.com\/5csb0VKJSNYqZYn4I2r-7NgqTz7X6LucaIzmN-94gX8F4hTD3SCs3i8wMYDGS3kDWvunASlpww1hcvch-3HKO511ozLwqDfQ9qq8GQxPLsxn27nz3qR955moyVYaomLxkz_qToBiRVDHWPQMzdCG564\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/refer-a-friend-for-woocommerce\\\/how-tos\\\/how-to-restrict-referrers-by-user-roles\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/refer-a-friend-for-woocommerce\\\/how-tos\\\/how-to-restrict-referrers-by-user-roles\\\/\",\"name\":\"How to Restrict Referrers by User Roles? - Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/refer-a-friend-for-woocommerce\\\/how-tos\\\/how-to-restrict-referrers-by-user-roles\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/refer-a-friend-for-woocommerce\\\/how-tos\\\/how-to-restrict-referrers-by-user-roles\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lh4.googleusercontent.com\\\/5csb0VKJSNYqZYn4I2r-7NgqTz7X6LucaIzmN-94gX8F4hTD3SCs3i8wMYDGS3kDWvunASlpww1hcvch-3HKO511ozLwqDfQ9qq8GQxPLsxn27nz3qR955moyVYaomLxkz_qToBiRVDHWPQMzdCG564\",\"datePublished\":\"2023-08-18T12:17:06+00:00\",\"dateModified\":\"2023-08-18T12:17:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/refer-a-friend-for-woocommerce\\\/how-tos\\\/how-to-restrict-referrers-by-user-roles\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/refer-a-friend-for-woocommerce\\\/how-tos\\\/how-to-restrict-referrers-by-user-roles\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/refer-a-friend-for-woocommerce\\\/how-tos\\\/how-to-restrict-referrers-by-user-roles\\\/#primaryimage\",\"url\":\"https:\\\/\\\/lh4.googleusercontent.com\\\/5csb0VKJSNYqZYn4I2r-7NgqTz7X6LucaIzmN-94gX8F4hTD3SCs3i8wMYDGS3kDWvunASlpww1hcvch-3HKO511ozLwqDfQ9qq8GQxPLsxn27nz3qR955moyVYaomLxkz_qToBiRVDHWPQMzdCG564\",\"contentUrl\":\"https:\\\/\\\/lh4.googleusercontent.com\\\/5csb0VKJSNYqZYn4I2r-7NgqTz7X6LucaIzmN-94gX8F4hTD3SCs3i8wMYDGS3kDWvunASlpww1hcvch-3HKO511ozLwqDfQ9qq8GQxPLsxn27nz3qR955moyVYaomLxkz_qToBiRVDHWPQMzdCG564\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/refer-a-friend-for-woocommerce\\\/how-tos\\\/how-to-restrict-referrers-by-user-roles\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"WooCommerce\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Refer a Friend For WooCommerce\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/refer-a-friend-for-woocommerce\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How To\u2019s RFW\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/refer-a-friend-for-woocommerce\\\/how-tos\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How to Restrict Referrers by User Roles?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\",\"name\":\"Documentation\",\"description\":\"Documentation for Addify Extensions\",\"publisher\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/addify.store\\\/documentation\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#organization\",\"name\":\"Documentation\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/Asset-21-2x.png\",\"contentUrl\":\"https:\\\/\\\/addify.store\\\/documentation\\\/wp-content\\\/uploads\\\/2023\\\/11\\\/Asset-21-2x.png\",\"width\":6761,\"height\":1853,\"caption\":\"Documentation\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#\\\/schema\\\/logo\\\/image\\\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Restrict Referrers by User Roles? - Documentation","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/","og_locale":"en_US","og_type":"article","og_title":"How to Restrict Referrers by User Roles? - Documentation","og_description":"Restricting Referrers by User Roles Using the WooCommerce Refer a Friend plugin, you can restrict referral by user roles for both types of discounts: Go to WooCommerce &gt; Refer a Friend. Here you can configure general user role settings for both referrer and referee discounts.&nbsp; To Restrict Referrer Discount based on User Roles: To Restrict [&hellip;]","og_url":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/","og_site_name":"Documentation","article_modified_time":"2023-08-18T12:17:07+00:00","og_image":[{"url":"https:\/\/lh4.googleusercontent.com\/5csb0VKJSNYqZYn4I2r-7NgqTz7X6LucaIzmN-94gX8F4hTD3SCs3i8wMYDGS3kDWvunASlpww1hcvch-3HKO511ozLwqDfQ9qq8GQxPLsxn27nz3qR955moyVYaomLxkz_qToBiRVDHWPQMzdCG564","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/","url":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/","name":"How to Restrict Referrers by User Roles? - Documentation","isPartOf":{"@id":"https:\/\/addify.store\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/#primaryimage"},"image":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/#primaryimage"},"thumbnailUrl":"https:\/\/lh4.googleusercontent.com\/5csb0VKJSNYqZYn4I2r-7NgqTz7X6LucaIzmN-94gX8F4hTD3SCs3i8wMYDGS3kDWvunASlpww1hcvch-3HKO511ozLwqDfQ9qq8GQxPLsxn27nz3qR955moyVYaomLxkz_qToBiRVDHWPQMzdCG564","datePublished":"2023-08-18T12:17:06+00:00","dateModified":"2023-08-18T12:17:07+00:00","breadcrumb":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/#primaryimage","url":"https:\/\/lh4.googleusercontent.com\/5csb0VKJSNYqZYn4I2r-7NgqTz7X6LucaIzmN-94gX8F4hTD3SCs3i8wMYDGS3kDWvunASlpww1hcvch-3HKO511ozLwqDfQ9qq8GQxPLsxn27nz3qR955moyVYaomLxkz_qToBiRVDHWPQMzdCG564","contentUrl":"https:\/\/lh4.googleusercontent.com\/5csb0VKJSNYqZYn4I2r-7NgqTz7X6LucaIzmN-94gX8F4hTD3SCs3i8wMYDGS3kDWvunASlpww1hcvch-3HKO511ozLwqDfQ9qq8GQxPLsxn27nz3qR955moyVYaomLxkz_qToBiRVDHWPQMzdCG564"},{"@type":"BreadcrumbList","@id":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/how-to-restrict-referrers-by-user-roles\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/addify.store\/documentation\/"},{"@type":"ListItem","position":2,"name":"WooCommerce","item":"https:\/\/addify.store\/documentation\/woocommerce\/"},{"@type":"ListItem","position":3,"name":"Refer a Friend For WooCommerce","item":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/"},{"@type":"ListItem","position":4,"name":"How To\u2019s RFW","item":"https:\/\/addify.store\/documentation\/woocommerce\/refer-a-friend-for-woocommerce\/how-tos\/"},{"@type":"ListItem","position":5,"name":"How to Restrict Referrers by User Roles?"}]},{"@type":"WebSite","@id":"https:\/\/addify.store\/documentation\/#website","url":"https:\/\/addify.store\/documentation\/","name":"Documentation","description":"Documentation for Addify Extensions","publisher":{"@id":"https:\/\/addify.store\/documentation\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/addify.store\/documentation\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/addify.store\/documentation\/#organization","name":"Documentation","url":"https:\/\/addify.store\/documentation\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/#\/schema\/logo\/image\/","url":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/11\/Asset-21-2x.png","contentUrl":"https:\/\/addify.store\/documentation\/wp-content\/uploads\/2023\/11\/Asset-21-2x.png","width":6761,"height":1853,"caption":"Documentation"},"image":{"@id":"https:\/\/addify.store\/documentation\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2137","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/comments?post=2137"}],"version-history":[{"count":1,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2137\/revisions"}],"predecessor-version":[{"id":2138,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2137\/revisions\/2138"}],"up":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2129"}],"wp:attachment":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/media?parent=2137"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}