TGMPA / TGM-Plugin-Activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins). It allows your users to install, update and even automatically activate plugins in singular or bulk fashion using native WordPress classes, functions and interfaces. You can reference bundled plugins, plugins from the WordPress Plugin Repository or even plugins hosted elsewhere on the internet.
http://tgmpluginactivation.com/
GNU General Public License v2.0
1.76k stars 429 forks source link

'Force Activation' feature not working for Redux Framework #630

Open mviniciosbarreto opened 7 years ago

mviniciosbarreto commented 7 years ago

I have a theme with has got some soft rejections from Theme Forest when using Redux Framework integrated in theme, so I decided to move it as a plugin and force the activation on theme activation using the TGM Plugin Activation now I face the issue that when I activate the theme this feature seems to be not working since the Redux Framework is not activated with theme activation no matter if I put the Redux as bundled zip in theme folder or an external source. What could be wrong? Thank you all!

jrfnl commented 7 years ago

Could you please share your config so someone can take a look ?

pseudonymus commented 7 years ago

Hey @marcc3d , @jrfnl , @GaryJones ,

There seems to be a general/global TGM option for forcing the activation of the plugin after installation:

'is_automatic' => true, // Automatically activate plugins after installation or not. - How I see things, this will automatically activate the plugin after you manually install the plugin and not after you activate the theme.

Other options but applied to the plugin array configs are:

'force_activation' => true, // If true, plugin is activated upon theme activation and cannot be deactivated until theme switch. - this activates the plugin when you activate the theme, but only if you have the plugin already installed.

If you ask me, I don't think that there`s a way to automatically install and activate a plugin once a theme is activated for the first time. I wish it was, since I'm dealing with the same issue as yours and I would love to get more info on this issue too.

Thanks! Madalin