Created
March 31, 2022 08:58
-
-
Save leewillis77/680fe41a05450b8d0d7e3e89e451c24a to your computer and use it in GitHub Desktop.
Modify whether an MSRP price is shown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_filter( 'woocommerce_msrp_show_msrp_pricing', function( $show_msrp, $current_product_price, $msrp, $current_product ) { | |
// Modify $show_msrp here | |
return $show_msrp; | |
}, 10, 4 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment