{"id":14812919,"date":"2021-08-27T21:39:59","date_gmt":"2021-08-27T21:39:59","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/create-a-role-programmatically\/"},"modified":"2021-08-27T21:39:59","modified_gmt":"2021-08-27T21:39:59","slug":"create-a-role-programmatically","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/create-a-role-programmatically\/","title":{"rendered":"Create a Role Programmatically"},"content":{"rendered":"<p>I would like to create a UM role via code if it does not already exist on the site when I install a custom plugin.  How can I create a UM role via code?<\/p>\n","protected":false},"template":"","class_list":["post-14812919","topic","type-topic","status-publish","hentry","topic-tag-code","topic-tag-manually","topic-tag-role"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/14812919","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\/14812919\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=14812919"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}