Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save simonlk/5500419 to your computer and use it in GitHub Desktop.
Save simonlk/5500419 to your computer and use it in GitHub Desktop.
Change the output of the price to include additional tags
add_filter( 'woocommerce_get_price_html', 'warnies_price_html', 100, 2 );
function warnies_price_html( $price, $product ){
return '<div class="price">' . $price . '</div>';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment