{"id":2614,"date":"2023-08-30T12:15:07","date_gmt":"2023-08-30T12:15:07","guid":{"rendered":"https:\/\/addify.store\/documentation\/?page_id=2614"},"modified":"2023-08-30T12:15:07","modified_gmt":"2023-08-30T12:15:07","slug":"how-to-restrict-custom-stock-status-by-user-role","status":"publish","type":"page","link":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/","title":{"rendered":"How to Restrict Custom Stock Status by User Role?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Restricting Custom Stock Status Based on User Role<\/h2>\n\n\n\n<p>You can restrict custom stock statuses by user role using the WooCommerce Custom Stock Status plugin. This allows you to control which user roles can see specific stock statuses, ensuring that certain statuses are only visible to authorized users.<\/p>\n\n\n\n<p>You can follow these steps:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Navigate to <strong>WP Admin Panel<\/strong> &gt; <strong>WooCommerce <\/strong>&gt; <strong>Custom Stock<\/strong>.&nbsp;<\/li>\n\n\n\n<li>You&#8217;ll find an option to <strong>Add New<\/strong> stock status. Enter a name for your custom stock status.&nbsp;<\/li>\n\n\n\n<li>In the \u201cRule Attributes\u201d section, select the <strong>User Roles<\/strong> you want to restrict custom stock status. You can choose from the following user roles:\n<ul class=\"wp-block-list\">\n<li>Administrator<\/li>\n\n\n\n<li>Editor<\/li>\n\n\n\n<li>Author<\/li>\n\n\n\n<li>Contributor<\/li>\n\n\n\n<li>Subscriber<\/li>\n\n\n\n<li>Customer<\/li>\n\n\n\n<li>Shop manager<\/li>\n\n\n\n<li>Wholesale<\/li>\n\n\n\n<li>B2B<\/li>\n\n\n\n<li>Retailer<\/li>\n\n\n\n<li>Guest<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Specify products and categories and fill in the required options.&nbsp;<\/li>\n\n\n\n<li>Click on <strong>Publish<\/strong>.&nbsp;<\/li>\n<\/ul>\n\n\n\n<p>To ensure that the restrictions are working correctly, log in to your WooCommerce store using a user account belonging to a role with restricted access to a particular stock status. Check the product pages displaying the stock status and verify that the restricted status is not visible for that user role.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/K1lbdDU_GZI9OM9Lb-FUxmyekf2f_kWxTgpDtybxW2NVo4tgf3iXJP2Ca9JerhepAPOt3_zJre3tacILihoCj4Td_cGqtq3UqXjQRxMSt31Wcm09LzL7xkYhekJbTOHfdYqFLkMoySFXFrIEQQL7d_xcS75_NhiO25DDjyQuj5nCVU_2zk-Tq6sTaoJt7A\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Restricting Custom Stock Status Based on User Role You can restrict custom stock statuses by user role using the WooCommerce Custom Stock Status plugin. This allows you to control which user roles can see specific stock statuses, ensuring that certain statuses are only visible to authorized users. You can follow these steps: To ensure that [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2602,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"template-parts\/multiple-page-template.php","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-2614","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 Custom Stock Status by User Role? - 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\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Restrict Custom Stock Status by User Role? - Documentation\" \/>\n<meta property=\"og:description\" content=\"Restricting Custom Stock Status Based on User Role You can restrict custom stock statuses by user role using the WooCommerce Custom Stock Status plugin. This allows you to control which user roles can see specific stock statuses, ensuring that certain statuses are only visible to authorized users. You can follow these steps: To ensure that [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lh3.googleusercontent.com\/K1lbdDU_GZI9OM9Lb-FUxmyekf2f_kWxTgpDtybxW2NVo4tgf3iXJP2Ca9JerhepAPOt3_zJre3tacILihoCj4Td_cGqtq3UqXjQRxMSt31Wcm09LzL7xkYhekJbTOHfdYqFLkMoySFXFrIEQQL7d_xcS75_NhiO25DDjyQuj5nCVU_2zk-Tq6sTaoJt7A\" \/>\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=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-custom-stock-status\\\/how-tos\\\/how-to-restrict-custom-stock-status-by-user-role\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-custom-stock-status\\\/how-tos\\\/how-to-restrict-custom-stock-status-by-user-role\\\/\",\"name\":\"How to Restrict Custom Stock Status by User Role? - Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-custom-stock-status\\\/how-tos\\\/how-to-restrict-custom-stock-status-by-user-role\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-custom-stock-status\\\/how-tos\\\/how-to-restrict-custom-stock-status-by-user-role\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lh3.googleusercontent.com\\\/K1lbdDU_GZI9OM9Lb-FUxmyekf2f_kWxTgpDtybxW2NVo4tgf3iXJP2Ca9JerhepAPOt3_zJre3tacILihoCj4Td_cGqtq3UqXjQRxMSt31Wcm09LzL7xkYhekJbTOHfdYqFLkMoySFXFrIEQQL7d_xcS75_NhiO25DDjyQuj5nCVU_2zk-Tq6sTaoJt7A\",\"datePublished\":\"2023-08-30T12:15:07+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-custom-stock-status\\\/how-tos\\\/how-to-restrict-custom-stock-status-by-user-role\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-custom-stock-status\\\/how-tos\\\/how-to-restrict-custom-stock-status-by-user-role\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-custom-stock-status\\\/how-tos\\\/how-to-restrict-custom-stock-status-by-user-role\\\/#primaryimage\",\"url\":\"https:\\\/\\\/lh3.googleusercontent.com\\\/K1lbdDU_GZI9OM9Lb-FUxmyekf2f_kWxTgpDtybxW2NVo4tgf3iXJP2Ca9JerhepAPOt3_zJre3tacILihoCj4Td_cGqtq3UqXjQRxMSt31Wcm09LzL7xkYhekJbTOHfdYqFLkMoySFXFrIEQQL7d_xcS75_NhiO25DDjyQuj5nCVU_2zk-Tq6sTaoJt7A\",\"contentUrl\":\"https:\\\/\\\/lh3.googleusercontent.com\\\/K1lbdDU_GZI9OM9Lb-FUxmyekf2f_kWxTgpDtybxW2NVo4tgf3iXJP2Ca9JerhepAPOt3_zJre3tacILihoCj4Td_cGqtq3UqXjQRxMSt31Wcm09LzL7xkYhekJbTOHfdYqFLkMoySFXFrIEQQL7d_xcS75_NhiO25DDjyQuj5nCVU_2zk-Tq6sTaoJt7A\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-custom-stock-status\\\/how-tos\\\/how-to-restrict-custom-stock-status-by-user-role\\\/#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\":\"WooCommerce Custom Stock Status\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-custom-stock-status\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How To\u2019s WCSS\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/woocommerce-custom-stock-status\\\/how-tos\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How to Restrict Custom Stock Status by User Role?\"}]},{\"@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 Custom Stock Status by User Role? - 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\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/","og_locale":"en_US","og_type":"article","og_title":"How to Restrict Custom Stock Status by User Role? - Documentation","og_description":"Restricting Custom Stock Status Based on User Role You can restrict custom stock statuses by user role using the WooCommerce Custom Stock Status plugin. This allows you to control which user roles can see specific stock statuses, ensuring that certain statuses are only visible to authorized users. You can follow these steps: To ensure that [&hellip;]","og_url":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/","og_site_name":"Documentation","og_image":[{"url":"https:\/\/lh3.googleusercontent.com\/K1lbdDU_GZI9OM9Lb-FUxmyekf2f_kWxTgpDtybxW2NVo4tgf3iXJP2Ca9JerhepAPOt3_zJre3tacILihoCj4Td_cGqtq3UqXjQRxMSt31Wcm09LzL7xkYhekJbTOHfdYqFLkMoySFXFrIEQQL7d_xcS75_NhiO25DDjyQuj5nCVU_2zk-Tq6sTaoJt7A","type":"","width":"","height":""}],"twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/","url":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/","name":"How to Restrict Custom Stock Status by User Role? - Documentation","isPartOf":{"@id":"https:\/\/addify.store\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/#primaryimage"},"image":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/#primaryimage"},"thumbnailUrl":"https:\/\/lh3.googleusercontent.com\/K1lbdDU_GZI9OM9Lb-FUxmyekf2f_kWxTgpDtybxW2NVo4tgf3iXJP2Ca9JerhepAPOt3_zJre3tacILihoCj4Td_cGqtq3UqXjQRxMSt31Wcm09LzL7xkYhekJbTOHfdYqFLkMoySFXFrIEQQL7d_xcS75_NhiO25DDjyQuj5nCVU_2zk-Tq6sTaoJt7A","datePublished":"2023-08-30T12:15:07+00:00","breadcrumb":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/#primaryimage","url":"https:\/\/lh3.googleusercontent.com\/K1lbdDU_GZI9OM9Lb-FUxmyekf2f_kWxTgpDtybxW2NVo4tgf3iXJP2Ca9JerhepAPOt3_zJre3tacILihoCj4Td_cGqtq3UqXjQRxMSt31Wcm09LzL7xkYhekJbTOHfdYqFLkMoySFXFrIEQQL7d_xcS75_NhiO25DDjyQuj5nCVU_2zk-Tq6sTaoJt7A","contentUrl":"https:\/\/lh3.googleusercontent.com\/K1lbdDU_GZI9OM9Lb-FUxmyekf2f_kWxTgpDtybxW2NVo4tgf3iXJP2Ca9JerhepAPOt3_zJre3tacILihoCj4Td_cGqtq3UqXjQRxMSt31Wcm09LzL7xkYhekJbTOHfdYqFLkMoySFXFrIEQQL7d_xcS75_NhiO25DDjyQuj5nCVU_2zk-Tq6sTaoJt7A"},{"@type":"BreadcrumbList","@id":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/how-to-restrict-custom-stock-status-by-user-role\/#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":"WooCommerce Custom Stock Status","item":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/"},{"@type":"ListItem","position":4,"name":"How To\u2019s WCSS","item":"https:\/\/addify.store\/documentation\/woocommerce\/woocommerce-custom-stock-status\/how-tos\/"},{"@type":"ListItem","position":5,"name":"How to Restrict Custom Stock Status by User Role?"}]},{"@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\/2614","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=2614"}],"version-history":[{"count":1,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2614\/revisions"}],"predecessor-version":[{"id":2615,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2614\/revisions\/2615"}],"up":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2602"}],"wp:attachment":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/media?parent=2614"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}