Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Created February 15, 2025 15:42
Show Gist options
  • Save plugin-republic/b6cdfe43b5852dabd5d030e622f40a41 to your computer and use it in GitHub Desktop.
Save plugin-republic/b6cdfe43b5852dabd5d030e622f40a41 to your computer and use it in GitHub Desktop.
<?php
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’ );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment