Skip to content

Instantly share code, notes, and snippets.

@plugin-republic
Last active October 1, 2025 12:40
Show Gist options
  • Select an option

  • Save plugin-republic/6de071c4f564df79b45d3bc73f1cbc03 to your computer and use it in GitHub Desktop.

Select an option

Save plugin-republic/6de071c4f564df79b45d3bc73f1cbc03 to your computer and use it in GitHub Desktop.
<?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