{"id":4834,"date":"2023-11-17T10:11:36","date_gmt":"2023-11-17T10:11:36","guid":{"rendered":"https:\/\/addify.store\/documentation\/?page_id=4834"},"modified":"2023-11-17T10:11:37","modified_gmt":"2023-11-17T10:11:37","slug":"how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce","status":"publish","type":"page","link":"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/","title":{"rendered":"How to Restrict the Access to Upload Files Based on User Roles with Checkout Files Upload for WooCommerce?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Restricting the Access to Upload Files Based on User Roles<\/h2>\n\n\n\n<p>To restrict access to upload files based on user roles with Checkout Files Upload for WooCommerce, follow these steps:<\/p>\n\n\n\n<p>Go to <strong>WooCommerce <\/strong>&gt; <strong>Checkout Files Upload<\/strong> &gt; <strong>File Upload Rules.<\/strong><\/p>\n\n\n\n<p>Click on the <strong>&#8220;Add file upload rule&#8221; <\/strong>button.<\/p>\n\n\n\n<p>While creating a new rule, customize the following settings under<strong> &#8220;User Roles&#8221;:<\/strong><\/p>\n\n\n\n<p><strong>User Roles: <\/strong>Select the specific user roles for which you want to display the file upload field. Leave this field empty to allow all user roles to access the file upload field. The available user roles might include:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Guest<\/li>\n\n\n\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>Manager<\/li>\n\n\n\n<li>Wholesale<\/li>\n\n\n\n<li>B2B<\/li>\n\n\n\n<li>Retailer<\/li>\n<\/ul>\n\n\n\n<p>After selecting the desired user roles, click the <strong>&#8220;Publish&#8221; <\/strong>button to save the rule.<\/p>\n\n\n\n<p>By configuring the &#8220;User Roles&#8221; settings, you can control which user roles have access to the file upload field during the checkout process. For example, you might want to allow only logged-in customers or specific user roles to upload files.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh7-us.googleusercontent.com\/KVjqJB0ihWyFrWP9B9xC8Xgt7YWj6yt40wjyfX93jGElXGzoSfrTKlCwLfVYsPVlQX7uWxthBB15ibxKGudQHDMws04EblVmSNIVFkbWG_9ZwJq8RAGANhe7QY6I6Iii9QtNCnsQdOYo6GplXdFs2so\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Restricting the Access to Upload Files Based on User Roles To restrict access to upload files based on user roles with Checkout Files Upload for WooCommerce, follow these steps: Go to WooCommerce &gt; Checkout Files Upload &gt; File Upload Rules. Click on the &#8220;Add file upload rule&#8221; button. While creating a new rule, customize the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":4828,"menu_order":3,"comment_status":"closed","ping_status":"closed","template":"template-parts\/multiple-page-template.php","meta":{"_themeisle_gutenberg_block_has_review":false,"footnotes":""},"class_list":["post-4834","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 the Access to Upload Files Based on User Roles with Checkout Files Upload for WooCommerce? - 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\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Restrict the Access to Upload Files Based on User Roles with Checkout Files Upload for WooCommerce? - Documentation\" \/>\n<meta property=\"og:description\" content=\"Restricting the Access to Upload Files Based on User Roles To restrict access to upload files based on user roles with Checkout Files Upload for WooCommerce, follow these steps: Go to WooCommerce &gt; Checkout Files Upload &gt; File Upload Rules. Click on the &#8220;Add file upload rule&#8221; button. While creating a new rule, customize the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2023-11-17T10:11:37+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lh7-us.googleusercontent.com\/KVjqJB0ihWyFrWP9B9xC8Xgt7YWj6yt40wjyfX93jGElXGzoSfrTKlCwLfVYsPVlQX7uWxthBB15ibxKGudQHDMws04EblVmSNIVFkbWG_9ZwJq8RAGANhe7QY6I6Iii9QtNCnsQdOYo6GplXdFs2so\" \/>\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\\\/checkout-files-upload-for-woocommerce\\\/how-tos\\\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\\\/\",\"url\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/checkout-files-upload-for-woocommerce\\\/how-tos\\\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\\\/\",\"name\":\"How to Restrict the Access to Upload Files Based on User Roles with Checkout Files Upload for WooCommerce? - Documentation\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/checkout-files-upload-for-woocommerce\\\/how-tos\\\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/checkout-files-upload-for-woocommerce\\\/how-tos\\\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/lh7-us.googleusercontent.com\\\/KVjqJB0ihWyFrWP9B9xC8Xgt7YWj6yt40wjyfX93jGElXGzoSfrTKlCwLfVYsPVlQX7uWxthBB15ibxKGudQHDMws04EblVmSNIVFkbWG_9ZwJq8RAGANhe7QY6I6Iii9QtNCnsQdOYo6GplXdFs2so\",\"datePublished\":\"2023-11-17T10:11:36+00:00\",\"dateModified\":\"2023-11-17T10:11:37+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/checkout-files-upload-for-woocommerce\\\/how-tos\\\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/checkout-files-upload-for-woocommerce\\\/how-tos\\\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/checkout-files-upload-for-woocommerce\\\/how-tos\\\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\\\/#primaryimage\",\"url\":\"https:\\\/\\\/lh7-us.googleusercontent.com\\\/KVjqJB0ihWyFrWP9B9xC8Xgt7YWj6yt40wjyfX93jGElXGzoSfrTKlCwLfVYsPVlQX7uWxthBB15ibxKGudQHDMws04EblVmSNIVFkbWG_9ZwJq8RAGANhe7QY6I6Iii9QtNCnsQdOYo6GplXdFs2so\",\"contentUrl\":\"https:\\\/\\\/lh7-us.googleusercontent.com\\\/KVjqJB0ihWyFrWP9B9xC8Xgt7YWj6yt40wjyfX93jGElXGzoSfrTKlCwLfVYsPVlQX7uWxthBB15ibxKGudQHDMws04EblVmSNIVFkbWG_9ZwJq8RAGANhe7QY6I6Iii9QtNCnsQdOYo6GplXdFs2so\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/checkout-files-upload-for-woocommerce\\\/how-tos\\\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\\\/#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\":\"Checkout Files Upload for WooCommerce\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/checkout-files-upload-for-woocommerce\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How To\u2019s CFUW\",\"item\":\"https:\\\/\\\/addify.store\\\/documentation\\\/woocommerce\\\/checkout-files-upload-for-woocommerce\\\/how-tos\\\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How to Restrict the Access to Upload Files Based on User Roles with Checkout Files Upload for WooCommerce?\"}]},{\"@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 the Access to Upload Files Based on User Roles with Checkout Files Upload for WooCommerce? - 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\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"How to Restrict the Access to Upload Files Based on User Roles with Checkout Files Upload for WooCommerce? - Documentation","og_description":"Restricting the Access to Upload Files Based on User Roles To restrict access to upload files based on user roles with Checkout Files Upload for WooCommerce, follow these steps: Go to WooCommerce &gt; Checkout Files Upload &gt; File Upload Rules. Click on the &#8220;Add file upload rule&#8221; button. While creating a new rule, customize the [&hellip;]","og_url":"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/","og_site_name":"Documentation","article_modified_time":"2023-11-17T10:11:37+00:00","og_image":[{"url":"https:\/\/lh7-us.googleusercontent.com\/KVjqJB0ihWyFrWP9B9xC8Xgt7YWj6yt40wjyfX93jGElXGzoSfrTKlCwLfVYsPVlQX7uWxthBB15ibxKGudQHDMws04EblVmSNIVFkbWG_9ZwJq8RAGANhe7QY6I6Iii9QtNCnsQdOYo6GplXdFs2so","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\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/","url":"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/","name":"How to Restrict the Access to Upload Files Based on User Roles with Checkout Files Upload for WooCommerce? - Documentation","isPartOf":{"@id":"https:\/\/addify.store\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/#primaryimage"},"image":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/lh7-us.googleusercontent.com\/KVjqJB0ihWyFrWP9B9xC8Xgt7YWj6yt40wjyfX93jGElXGzoSfrTKlCwLfVYsPVlQX7uWxthBB15ibxKGudQHDMws04EblVmSNIVFkbWG_9ZwJq8RAGANhe7QY6I6Iii9QtNCnsQdOYo6GplXdFs2so","datePublished":"2023-11-17T10:11:36+00:00","dateModified":"2023-11-17T10:11:37+00:00","breadcrumb":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/#primaryimage","url":"https:\/\/lh7-us.googleusercontent.com\/KVjqJB0ihWyFrWP9B9xC8Xgt7YWj6yt40wjyfX93jGElXGzoSfrTKlCwLfVYsPVlQX7uWxthBB15ibxKGudQHDMws04EblVmSNIVFkbWG_9ZwJq8RAGANhe7QY6I6Iii9QtNCnsQdOYo6GplXdFs2so","contentUrl":"https:\/\/lh7-us.googleusercontent.com\/KVjqJB0ihWyFrWP9B9xC8Xgt7YWj6yt40wjyfX93jGElXGzoSfrTKlCwLfVYsPVlQX7uWxthBB15ibxKGudQHDMws04EblVmSNIVFkbWG_9ZwJq8RAGANhe7QY6I6Iii9QtNCnsQdOYo6GplXdFs2so"},{"@type":"BreadcrumbList","@id":"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/how-to-restrict-the-access-to-upload-files-based-on-user-roles-with-checkout-files-upload-for-woocommerce\/#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":"Checkout Files Upload for WooCommerce","item":"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/"},{"@type":"ListItem","position":4,"name":"How To\u2019s CFUW","item":"https:\/\/addify.store\/documentation\/woocommerce\/checkout-files-upload-for-woocommerce\/how-tos\/"},{"@type":"ListItem","position":5,"name":"How to Restrict the Access to Upload Files Based on User Roles with Checkout Files Upload for WooCommerce?"}]},{"@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\/4834","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=4834"}],"version-history":[{"count":1,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/4834\/revisions"}],"predecessor-version":[{"id":4835,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/4834\/revisions\/4835"}],"up":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/4828"}],"wp:attachment":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/media?parent=4834"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}