/** * Constructor * * @param MI_Product $product */ public function __construct(MI_Product $product) { parent::__construct($product); // Check if plugin is network activated. We should use site(wide) options in that case. if (is_admin() && is_multisite()) { if (!function_exists('is_plugin_active_for_network')) { require_once ABSPATH . '/wp-admin/includes/plugin.php'; } $this->is_network_activated = is_plugin_active_for_network($product->get_file()); } }
public function __construct() { $this->product = new MI_Product_Double(); parent::__construct($this->product); }