Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work with Multisite #26

Open
kolawoletech opened this issue May 14, 2020 · 1 comment
Open

Does not work with Multisite #26

kolawoletech opened this issue May 14, 2020 · 1 comment

Comments

@kolawoletech
Copy link

The plugin does not work with WordPress MultiSite

@PunchcardCoder
Copy link

Two solutions:

  1. Install at site level instead of network level. This to be repeated for every site in your network.
  2. Change line 34 of file woocommerce-max-quantity.php to
if ( in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) )
|| in_array( 'woocommerce/woocommerce.php', array_keys( apply_filters( 'active_plugins', get_site_option( 'active_sitewide_plugins' ) ) ) ) ) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants