{"id":21950,"date":"2018-04-14T19:18:43","date_gmt":"2018-04-14T13:48:43","guid":{"rendered":"http:\/\/convertplug.com\/plus\/?post_type=docs&#038;p=21950"},"modified":"2018-06-02T10:11:52","modified_gmt":"2018-06-02T04:41:52","slug":"assign-wordpress-user-role-after-successful-form-submission","status":"publish","type":"docs","link":"https:\/\/convertplug.com\/plus\/docs\/assign-wordpress-user-role-after-successful-form-submission\/","title":{"rendered":"How to Assign a WordPress User-role after Successful Form Submission?"},"content":{"rendered":"<p>Many a times, users approached us asking for a feature that allowed them to automatically add a subscriber (the user who submits a form successfully) as a user on their WordPress website.<\/p>\n<p>We&#8217;ve made that possible!<\/p>\n<p>You can now select a specific WordPress user role that you wish to assign a user who submits the specific form on your website. In this article, we&#8217;ll be seeing the few easy steps to do this.<\/p>\n<p>1. Design and configure a module as per your needs.<\/p>\n<p>2. Open the Submission section in the editor.<\/p>\n<p><a href=\"http:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Open-Submission-tab-in-Convert-Plus-editor.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-21951\" src=\"http:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Open-Submission-tab-in-Convert-Plus-editor.jpg\" alt=\"Open Submission Tab In Convert Plus Editor\" width=\"2043\" height=\"1185\" title=\"How to Assign a WordPress User-role after Successful Form Submission?\" srcset=\"https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Open-Submission-tab-in-Convert-Plus-editor.jpg 2043w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Open-Submission-tab-in-Convert-Plus-editor-300x174.jpg 300w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Open-Submission-tab-in-Convert-Plus-editor-768x445.jpg 768w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Open-Submission-tab-in-Convert-Plus-editor-1024x594.jpg 1024w\" sizes=\"auto, (max-width: 2043px) 100vw, 2043px\" \/><\/a>3. Select one user role you wish to assign a user who submits the specific opt-in form.<\/p>\n<p><a href=\"http:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Set-user-role-for-subscriber-in-Convert-Plus.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-21952\" src=\"http:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Set-user-role-for-subscriber-in-Convert-Plus.jpg\" alt=\"Set User Role For Subscriber In Convert Plus\" width=\"2039\" height=\"1187\" title=\"How to Assign a WordPress User-role after Successful Form Submission?\" srcset=\"https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Set-user-role-for-subscriber-in-Convert-Plus.jpg 2039w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Set-user-role-for-subscriber-in-Convert-Plus-300x175.jpg 300w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Set-user-role-for-subscriber-in-Convert-Plus-768x447.jpg 768w, https:\/\/convertplug.com\/plus\/wp-content\/uploads\/sites\/4\/2018\/04\/Set-user-role-for-subscriber-in-Convert-Plus-1024x596.jpg 1024w\" sizes=\"auto, (max-width: 2039px) 100vw, 2039px\" \/><\/a>4. Save and Publish!<\/p>\n<p>This will now add the user to the list, assign him a user role and send him an email informing him about the same.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many a times, users approached us asking for a feature that allowed them to automatically add a subscriber (the user who submits a form successfully) as a user on their WordPress website. We&#8217;ve made that possible! You can now select a specific WordPress user role that you wish to assign a user who submits the [&hellip;]<\/p>\n","protected":false},"author":12,"featured_media":0,"template":"","meta":{"inline_featured_image":false,"site-sidebar-layout":"default","site-content-layout":"default","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"docs_category":[19,20],"docs_tag":[],"class_list":["post-21950","docs","type-docs","status-publish","hentry","docs_category-faqs","docs_category-general"],"_links":{"self":[{"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs\/21950","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/users\/12"}],"version-history":[{"count":1,"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs\/21950\/revisions"}],"predecessor-version":[{"id":22052,"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs\/21950\/revisions\/22052"}],"wp:attachment":[{"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/media?parent=21950"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs_category?post=21950"},{"taxonomy":"docs_tag","embeddable":true,"href":"https:\/\/convertplug.com\/plus\/wp-json\/wp\/v2\/docs_tag?post=21950"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}