Iam trying to activate a plugin which is inside my theme template directory,
ie : i have a folder called plugin inside my current theme, which has some plugins
how can i activate those plugins from the current plugins options.
|
|
|
TGM Plugin Activation Class looks awesome!*
And here's an introduction to it: http://wp.tutsplus.com/articles/intro-to-tgm-plugin-activation-class-for-wordpress/ *Disclaimer: I haven't had a chance to try it out for myself... yet. |
|||||
|
|
As far as I know you can't. You need to put plugins in the relevant plugins folder as defined by Wordpress, otherwise WP will not be able to see them. See here for instructions on manually installing plugins. EDIT: Ok, so after our comments above I decided to investigate furter, and it turns out that it is actually pretty easy... Just put this in your
ANOTHER EDIT: It looks like this may not work yet, as although WP will add the plugin to your list using the above code, it will not activate it due to having to go up a level. Here is the code that makes the whole process fail -
|
|||||||
|