Override core woocommerce class
1) There is a hook for the first one: You can use the apply_filters Their code: apply_filters( ‘woocommerce_get_discounted_price’, $price, $values, $this ); Your code: add_filter( ‘woocommerce_get_discounted_price’, function($price, $values, $this) { //return whatever you want },10,3 ); //*PHP 5.3 and up you can pass whatever function you want into the second parameter of the add_filter function. … Read more