Add_Advanced_Coupons_Integration::plugin_active()

Checks if parent plugin is active or not.

Contents


Return Return

(bool)


Source Source

File: src/integrations/advanced-coupons/add-advanced-coupons-integration.php

	public function plugin_active() {

		$plugin_list = get_option( 'active_plugins' );
		$plugin      = 'advanced-coupons-for-woocommerce-free/advanced-coupons-for-woocommerce-free.php';

		if ( in_array( $plugin, $plugin_list, true ) && class_exists( 'ACFWF' ) ) {
			return true;
		}

		return false;
	}