• I get a few requests from time to time about Subscribe2 Widget Pro and it’s compatibility with Subscribe2 HTML.

    Subscribe2 HTML is a fork of Subscribe2 and to avoid upgrade issues in WordPress it uses a different filename structure so some of the checks in Subscribe2 Widget Pro fail but is all works fine.

    There are a couple of occasions where the following is checked:
    if ( ! is_plugin_active('subscribe2/subscribe2.php') ) {

    This works for both Subscribe2 and Subscribe2 HTML:
    if ( ! is_plugin_active('subscribe2/subscribe2.php') || ! is_plugin_active('subscribe2_html/subscribe2.php) ) {

    Also in the is_subscribe2_activated() function, there is this:
    if ( in_array( 'subscribe2/subscribe2.php', $activePlugins ) == false ) {

    This should work for both Subscribe2 and Subscribe2 HTML:
    if ( in_array( 'subscribe2/subscribe2.php', $activePlugins ) == false && in_array( 'subscribe2_html/subscribe2.php', $activePlugins ) ) {

    https://www.ads-software.com/plugins/subscribe2-widget-pro/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Devin Walker

    (@dlocc)

    Hey There Matt – I’ll update the conditional checks I have in place within the code with what you have mentioned here for the next release. Thanks for reaching out!

    Thread Starter Matt Robinson

    (@mattyrob)

    Devin,

    Thanks for the response, in fact the second code snippet isn’t quite right, it should be something this:

    if ( in_array( 'subscribe2/subscribe2.php', $activePlugins ) === false && in_array( 'subscribe2_html/subscribe2.php', $activePlugins ) === false ) {

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Subscribe2 HTML’ is closed to new replies.