A filter removes a function even after snippet deleted
-
Experimenting with these filters definitely removed the price and the subtotal in the Woocommerce Cart. Now the snippet is deleted, yet the price and the subtotal are still no longer displayed in the Cart!
add_filter( 'woocommerce_get_price_html', function( $price ) { if ( is_admin() ) return $price; return ''; } ); add_filter( 'woocommerce_cart_item_price', '__return_false' ); add_filter( 'woocommerce_cart_item_subtotal', '__return_false' );
The price and subtotal are shown again after the Code Snippets plugin is deactivated. I think is a cache problem, but not with the browser, nor the LiteSpeed Cache that I am using and I also deactivated it, just to check if that caused the problem. It is definitely the Code Snippets that hang onto those filters…\
Any help, much appreciated!
Thank you!
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘A filter removes a function even after snippet deleted’ is closed to new replies.