Is there any option to override class files in woocommerce includes folder. My problem:
I need to edit notices that are generate from Exceptions. For example in woocommerce/includes.php is public function add_to_cart, there is condition if ( $product_data->is_sold_individually() ) {
.
How to edit throw new Exception( sprintf( '<a href="%s" class="button wc-forward">%s</a>', wc_get_cart_url(), $message ) );
? I'm not want to return link in my error message.
I don't see a way to solve this problem with add_filter.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…