alexmustin / woocustomemails

Repo for the WC Custom Emails Per Product plugin
https://wordpress.org/plugins/woo-custom-emails-per-product/
GNU General Public License v2.0
21 stars 5 forks source link

Fix check for WooCommerce when on WP Multisite #16

Open alexmustin opened 4 years ago

alexmustin commented 4 years ago

Describe the bug When using WP Multisite, users get an error saying WooCommerce is not activated even when it is active.

To Reproduce Steps to reproduce the behavior:

  1. Install WP Multisite instance with WooCommerce active
  2. Install WCEPP plugin, Activate it
  3. See error

Expected behavior The code check for WooCommerce needs to be updated to account for WP Multisite.

Screenshots N/A

Desktop (please complete the following information): (all browsers)

Smartphone (please complete the following information): (all devices)

Additional context N/A

SourceCodeSpain commented 1 month ago

Not the best 'fix', but it works - comment out the hook that checks for woocommerce

line 31 - woo-custom-emails-per-product.php

// Add a check for WooCommerce on plugin activation.
//register_activation_hook( __FILE__, 'woo_custom_emails_activate_check_for_woo' );