{"id":2789,"date":"2023-09-19T10:30:33","date_gmt":"2023-09-19T10:30:33","guid":{"rendered":"https:\/\/addify.store\/documentation\/?page_id=2789"},"modified":"2023-09-19T10:30:34","modified_gmt":"2023-09-19T10:30:34","slug":"how-to-add-registration-fields-based-on-user-roles-in-woocommerce","status":"publish","type":"page","link":"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/","title":{"rendered":"How to Add Registration Fields Based on User Roles in WooCommerce?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">Adding Registration Fields Based on User Roles<\/h2>\n\n\n\n<p>For each registration field, you can now customize the information you want to collect based on the selected user roles. For example, you might want to ask for different business details for Wholesale customers compared to Retail customers. To carry out this functionality using the Custom User Registration Field plugin:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Go to <strong>WP Admin Panel <\/strong>&gt; <strong>Registration Fields <\/strong>&gt; <strong>Add New Field<\/strong>.<\/li>\n\n\n\n<li>Locate \u201cUser Role Dependency\u201d. Here, you can make fields dependable and limit them to selected user roles.<\/li>\n<\/ul>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Is Dependable?:<\/strong> Checkmark to make the field dependable<\/li>\n\n\n\n<li><strong>Select User Roles: <\/strong>Select the user roles you want to display in this field. Leave empty to display fields for all. User roles mentioned here are:\n<ul 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\n\n\n<li>&nbsp;Guest<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<p>Complete the remaining details for the registration form and click on Publish.&nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/lh3.googleusercontent.com\/0cAO_8Db3ZEacVJJ3Cgp6iQJmeujHBabx_qvjzl2EUnAZhP3d9a6fGp5OQmOa37RR-K_2qN3hIsWlrzfrwfP5CwrGZWm5QdtcFp6AuEYX9DtGtD1GDWeBDwqWd9RykX2ELbeA93LcVhiFNG65pPnCBA\" alt=\"\"\/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Adding Registration Fields Based on User Roles For each registration field, you can now customize the information you want to collect based on the selected user roles. For example, you might want to ask for different business details for Wholesale customers compared to Retail customers. To carry out this functionality using the Custom User Registration [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2778,"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-2789","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Add Registration Fields Based on User Roles in 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\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Add Registration Fields Based on User Roles in WooCommerce? - Documentation\" \/>\n<meta property=\"og:description\" content=\"Adding Registration Fields Based on User Roles For each registration field, you can now customize the information you want to collect based on the selected user roles. For example, you might want to ask for different business details for Wholesale customers compared to Retail customers. To carry out this functionality using the Custom User Registration [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/\" \/>\n<meta property=\"og:site_name\" content=\"Documentation\" \/>\n<meta property=\"article:modified_time\" content=\"2023-09-19T10:30:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/lh3.googleusercontent.com\/0cAO_8Db3ZEacVJJ3Cgp6iQJmeujHBabx_qvjzl2EUnAZhP3d9a6fGp5OQmOa37RR-K_2qN3hIsWlrzfrwfP5CwrGZWm5QdtcFp6AuEYX9DtGtD1GDWeBDwqWd9RykX2ELbeA93LcVhiFNG65pPnCBA\" \/>\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\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/\",\"url\":\"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/\",\"name\":\"How to Add Registration Fields Based on User Roles in WooCommerce? - Documentation\",\"isPartOf\":{\"@id\":\"https:\/\/addify.store\/documentation\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/lh3.googleusercontent.com\/0cAO_8Db3ZEacVJJ3Cgp6iQJmeujHBabx_qvjzl2EUnAZhP3d9a6fGp5OQmOa37RR-K_2qN3hIsWlrzfrwfP5CwrGZWm5QdtcFp6AuEYX9DtGtD1GDWeBDwqWd9RykX2ELbeA93LcVhiFNG65pPnCBA\",\"datePublished\":\"2023-09-19T10:30:33+00:00\",\"dateModified\":\"2023-09-19T10:30:34+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/#primaryimage\",\"url\":\"https:\/\/lh3.googleusercontent.com\/0cAO_8Db3ZEacVJJ3Cgp6iQJmeujHBabx_qvjzl2EUnAZhP3d9a6fGp5OQmOa37RR-K_2qN3hIsWlrzfrwfP5CwrGZWm5QdtcFp6AuEYX9DtGtD1GDWeBDwqWd9RykX2ELbeA93LcVhiFNG65pPnCBA\",\"contentUrl\":\"https:\/\/lh3.googleusercontent.com\/0cAO_8Db3ZEacVJJ3Cgp6iQJmeujHBabx_qvjzl2EUnAZhP3d9a6fGp5OQmOa37RR-K_2qN3hIsWlrzfrwfP5CwrGZWm5QdtcFp6AuEYX9DtGtD1GDWeBDwqWd9RykX2ELbeA93LcVhiFNG65pPnCBA\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-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\":\"Custom User Registration Fields\",\"item\":\"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"How To\u2019s WCURF\",\"item\":\"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/\"},{\"@type\":\"ListItem\",\"position\":5,\"name\":\"How to Add Registration Fields Based on User Roles in 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 Add Registration Fields Based on User Roles in 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\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/","og_locale":"en_US","og_type":"article","og_title":"How to Add Registration Fields Based on User Roles in WooCommerce? - Documentation","og_description":"Adding Registration Fields Based on User Roles For each registration field, you can now customize the information you want to collect based on the selected user roles. For example, you might want to ask for different business details for Wholesale customers compared to Retail customers. To carry out this functionality using the Custom User Registration [&hellip;]","og_url":"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/","og_site_name":"Documentation","article_modified_time":"2023-09-19T10:30:34+00:00","og_image":[{"url":"https:\/\/lh3.googleusercontent.com\/0cAO_8Db3ZEacVJJ3Cgp6iQJmeujHBabx_qvjzl2EUnAZhP3d9a6fGp5OQmOa37RR-K_2qN3hIsWlrzfrwfP5CwrGZWm5QdtcFp6AuEYX9DtGtD1GDWeBDwqWd9RykX2ELbeA93LcVhiFNG65pPnCBA","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\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/","url":"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/","name":"How to Add Registration Fields Based on User Roles in WooCommerce? - Documentation","isPartOf":{"@id":"https:\/\/addify.store\/documentation\/#website"},"primaryImageOfPage":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/#primaryimage"},"image":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/#primaryimage"},"thumbnailUrl":"https:\/\/lh3.googleusercontent.com\/0cAO_8Db3ZEacVJJ3Cgp6iQJmeujHBabx_qvjzl2EUnAZhP3d9a6fGp5OQmOa37RR-K_2qN3hIsWlrzfrwfP5CwrGZWm5QdtcFp6AuEYX9DtGtD1GDWeBDwqWd9RykX2ELbeA93LcVhiFNG65pPnCBA","datePublished":"2023-09-19T10:30:33+00:00","dateModified":"2023-09-19T10:30:34+00:00","breadcrumb":{"@id":"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-woocommerce\/#primaryimage","url":"https:\/\/lh3.googleusercontent.com\/0cAO_8Db3ZEacVJJ3Cgp6iQJmeujHBabx_qvjzl2EUnAZhP3d9a6fGp5OQmOa37RR-K_2qN3hIsWlrzfrwfP5CwrGZWm5QdtcFp6AuEYX9DtGtD1GDWeBDwqWd9RykX2ELbeA93LcVhiFNG65pPnCBA","contentUrl":"https:\/\/lh3.googleusercontent.com\/0cAO_8Db3ZEacVJJ3Cgp6iQJmeujHBabx_qvjzl2EUnAZhP3d9a6fGp5OQmOa37RR-K_2qN3hIsWlrzfrwfP5CwrGZWm5QdtcFp6AuEYX9DtGtD1GDWeBDwqWd9RykX2ELbeA93LcVhiFNG65pPnCBA"},{"@type":"BreadcrumbList","@id":"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/how-to-add-registration-fields-based-on-user-roles-in-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":"Custom User Registration Fields","item":"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/"},{"@type":"ListItem","position":4,"name":"How To\u2019s WCURF","item":"https:\/\/addify.store\/documentation\/woocommerce\/custom-user-registration-fields\/how-tos\/"},{"@type":"ListItem","position":5,"name":"How to Add Registration Fields Based on User Roles in 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\/2789","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=2789"}],"version-history":[{"count":1,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2789\/revisions"}],"predecessor-version":[{"id":2790,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2789\/revisions\/2790"}],"up":[{"embeddable":true,"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/pages\/2778"}],"wp:attachment":[{"href":"https:\/\/addify.store\/documentation\/wp-json\/wp\/v2\/media?parent=2789"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}