{"id":8685516,"date":"2017-01-22T22:56:10","date_gmt":"2017-01-22T22:56:10","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/dynamically-assign-role-with-custom-form-field\/"},"modified":"2017-01-22T22:56:10","modified_gmt":"2017-01-22T22:56:10","slug":"dynamically-assign-role-with-custom-form-field","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/dynamically-assign-role-with-custom-form-field\/","title":{"rendered":"Dynamically Assign Role with Custom Form Field?"},"content":{"rendered":"<p>We would like to dynamically assign a user role to a user at registration based on a code entered into a custom form field. Is this possible to achieve or is there an alternative method that could achieve the same effect?<\/p>\n","protected":false},"template":"","class_list":["post-8685516","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8685516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/8685516\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=8685516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}