• Sarun developer

    (@saruncloudspring)


    i want to remove $this->validate_product_categories(); in is_valid function in WooCommerce class-wc-coupon.php file without editing plugin.is there any hook for to do that in functions.php ??

Viewing 1 replies (of 1 total)
  • Plugin Support Rynald0s.a11n

    (@rynald0s)

    Automattic Happiness Engineer

    Hi there!

    Unfortunately, there is no way you can do this with a custom function. You could do this with either commenting out the code in WooCommerce, or write a custom coupon handler, but I wouldn’t recommend either of those options.

    Would it not be easier to just not set up category limits in the coupon?

    Cheers!

Viewing 1 replies (of 1 total)
  • The topic ‘how to remove $this->validate_product_categories(); in WooCommerce’ is closed to new replies.