• after analyzing an issue occured on my website, I discover a bug in giftcards plugin (free version): it is wrongly calling the filter “woocommerce_add_to_cart_redirect” in lib/class-yith-ywgc-cart-checkout.php on line 783. In the actual plugin version it is passed only 1 parameter to the filter, but as you can see in the WooCommerce source code, two parameters are needed. Here is the relevant snippet out of the WooCommerce source code: https://i.snipboard.io/5B9iNG.jpg . As you can see, this filter has two parameters.
    How to solve this issue?

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error in calling the filter “woocommerce_add_to_cart_redirect”’ is closed to new replies.