I'm working with a hook that is fired after a site has been added to a management portal, is there a way of install plugins through code, from url?
1 Answer
There is something wonderfull call wp-cli, that is wordpress from the terminal. I dont know how it works on windows, but if it isnt possible to install on cmd or powershell, windows already have the ubuntu terminal, that is great for this kind of stuff.
e.g. to install iControlWP:
wp plugin install iControlWP
simple as that!..
iControlWP is one plugin that do just that.