2 added 17 characters in body
source | link

There are two way by which you can check plugin is active or not.

  1. You can use is_plugin_active function to check plugin active or not.
  2. If plugin have class then you can check like below-

    if (class_exists('YITH_Woocompare_Frontend')) { echo 'your code'; }

    if (class_exists('YITH_Woocompare_Frontend')) 
    {
    echo 'your code';
    }
    

The above class related to YITH WooCommerce Compare plugin . The above code check if class exist then only you code inside the bracket will execute.

There are two way by which you can check plugin is active or not.

  1. You can use is_plugin_active function to check plugin active or not.
  2. If plugin have class then you can check like below-

    if (class_exists('YITH_Woocompare_Frontend')) { echo 'your code'; }

The above class related to YITH WooCommerce Compare plugin . The above code check if class exist then only you code inside the bracket will execute.

There are two way by which you can check plugin is active or not.

  1. You can use is_plugin_active function to check plugin active or not.
  2. If plugin have class then you can check like below-

    if (class_exists('YITH_Woocompare_Frontend')) 
    {
    echo 'your code';
    }
    

The above class related to YITH WooCommerce Compare plugin . The above code check if class exist then only you code inside the bracket will execute.

1
source | link

There are two way by which you can check plugin is active or not.

  1. You can use is_plugin_active function to check plugin active or not.
  2. If plugin have class then you can check like below-

    if (class_exists('YITH_Woocompare_Frontend')) { echo 'your code'; }

The above class related to YITH WooCommerce Compare plugin . The above code check if class exist then only you code inside the bracket will execute.