Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Theme dependent plugin Reply To: Theme dependent plugin

#236215
Ayanize
Participant

Thank you both for your replies. I got it working. I was stupid in making the condition illogical. It’s simple I need to apply this

`if ( get_template() != ‘Theme-One’ && get_template() !=’Theme-Two’ ) {

`

instead of

if ( get_template() != 'Theme-One' || get_template() !='Theme-Two' ) {

Now it triggers the deactivate_plugins filter when both themes are inactive.


@danallen
Elegant Themes has already released the Divi builder as a standalone plugin here it is http://www.elegantthemes.com/plugins/divi-builder/.

My forthcoming plugin is simple. It will create a custom post type where I need to use the Divi Page Builder. Since not all themes won’t have that, I want my plugin to remain deactivated. There are others features however with this plugin which I am planning.

Thanks for your time and support once again.