Support » Plugin: Subscribe2 » [Plugin: Subscribe2] Deactivate plugin conditionally

Viewing 1 replies (of 1 total)
  • @joe,

    I suspect you just need to know how to activate and deactivate plugins in code. It seems you do it like this:

    if ( is_plugin_active('plugin-folder/plugin-name.php') ) {
        deactivate_plugins( '/plugin-folder/plugin-name.php', true );
    }

    To activate it’s like this:
    activate_plugins( '/plugin-folder/plugin-name.php' );

Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Subscribe2] Deactivate plugin conditionally’ is closed to new replies.