get_cart was called incorrectly
-
Hi,
With last Woocommerce version, I get this notice when adding coupons through URLs:
get_cart was called incorrectly Get cart should not be called before the wp_loaded action
I think you should change line 44 in wjecf-autocoupon.php and replace init by wp_loaded:
add_action( 'wp_loaded', array( &$this, 'coupon_by_url' ), 23); //Coupon through url
https://www.ads-software.com/plugins/woocommerce-auto-added-coupons/
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘get_cart was called incorrectly’ is closed to new replies.