Last active
October 1, 2025 12:40
-
-
Save plugin-republic/6de071c4f564df79b45d3bc73f1cbc03 to your computer and use it in GitHub Desktop.
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 | |
| /** | |
| * Hook: woocommerce_get_price_html. | |
| * Modify the HTML for the product price. | |
| */ | |
| function plugin_republic_get_price_html( $price, $product ) { | |
| // Modify the $price HTML here | |
| return $price; | |
| } | |
| add_filter( 'woocommerce_get_price_html', 'plugin_republic_get_price_html', 10, 2 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment