Revert "add_to_cart_url filter added in loop/add-to-cart.php"
This reverts commit 174ccfadd2
.
This commit is contained in:
parent
cb73f90b57
commit
7a5ff38af7
|
@ -30,8 +30,8 @@ if( $product->get_price() === '' && $product->product_type != 'external' ) retur
|
|||
$label = apply_filters('external_add_to_cart_text', __('Read More', 'woocommerce'));
|
||||
break;
|
||||
default :
|
||||
$link = apply_filters( 'add_to_cart_url', esc_url( $product->add_to_cart_url() ), $product );
|
||||
$label = apply_filters( 'add_to_cart_text', __('Add to cart', 'woocommerce'), $product );
|
||||
$link = esc_url( $product->add_to_cart_url() );
|
||||
$label = apply_filters('add_to_cart_text', __('Add to cart', 'woocommerce'));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue