{"id":3630909,"date":"2013-04-06T04:05:57","date_gmt":"2013-04-06T04:05:57","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/programmatically-adding-domains\/"},"modified":"2016-08-20T23:29:04","modified_gmt":"2016-08-20T23:29:04","slug":"programmatically-adding-domains","status":"closed","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/programmatically-adding-domains\/","title":{"rendered":"Programmatically adding domains"},"content":{"rendered":"<p>Hi there,<\/p>\n<p>Firstly thanks for the excellent plugin.<\/p>\n<p>I would like to programatically update a site to being a domain site (i.e. not rely on any actions through the wp-admin pages).  The best I can find so far is to rip the code out of dm_handle_actions(), however before doing this, I&#8217;d like to see if there is a better way of solving this problem?<\/p>\n<p>I was thinking of moving all the specific actions in dm_handle_actions() into their own functions which would form an API for other developers.  Would you like me to contribute this change back?<\/p>\n<p>Thanks!<\/p>\n<p>https:\/\/wordpress.org\/extend\/plugins\/wordpress-mu-domain-mapping\/<\/p>\n","protected":false},"template":"","class_list":["post-3630909","topic","type-topic","status-closed","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/3630909","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\/3630909\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=3630909"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}