Skip to content
This repository has been archived by the owner on Feb 23, 2024. It is now read-only.

Commit

Permalink
Remove mocked filter call
Browse files Browse the repository at this point in the history
  • Loading branch information
thealexandrelara committed Jul 21, 2023
1 parent 2fd9b10 commit 7451d9a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/BlockTypes/AddToCartForm.php
Original file line number Diff line number Diff line change
Expand Up @@ -144,11 +144,6 @@ protected function add_is_descendent_of_single_product_block_hidden_input_to_pro
* @param string $message Message to be displayed when product is added to the cart.
*/
public function add_to_cart_message_html_filter( $message ) {
$value = apply_filters(
'woocommerce_add_to_cart_redirect',
'http://woo.local/cart/'
);

// phpcs:ignore
if ( isset( $_POST['is-descendent-of-single-product-block'] ) && 'true' === $_POST['is-descendent-of-single-product-block'] ) {
return false;
Expand Down

0 comments on commit 7451d9a

Please sign in to comment.