{"id":15625880,"date":"2022-05-08T12:22:18","date_gmt":"2022-05-08T12:22:18","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/how-could-i-install-a-plugin-or-theme-programatically\/"},"modified":"2022-05-08T13:04:10","modified_gmt":"2022-05-08T13:04:10","slug":"how-could-i-install-a-plugin-or-theme-programatically","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/how-could-i-install-a-plugin-or-theme-programatically\/","title":{"rendered":"How could I install a plugin or theme programatically?"},"content":{"rendered":"<p>I would like to use the WordPress API to submit a plugin or theme. I will send the ZIP file and WordPress should give me the option to activate it after installation or not. All this through wp-JSON and programmatically.<\/p>\n<p>How could I do this?<\/p>\n","protected":false},"template":"","class_list":["post-15625880","topic","type-topic","status-publish","hentry"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15625880","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":1,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15625880\/revisions"}],"predecessor-version":[{"id":15625919,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/15625880\/revisions\/15625919"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=15625880"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}