This file contains 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 | |
/** | |
* Restore single product "Free!" on WooCommerce 3.0. | |
* | |
* @param string $price Price HTML. | |
* @param WC_Product $product Product instance. | |
* @return string. | |
*/ | |
function my_wc_custom_get_price_html( $price, $product ) { | |
if ( $product->get_price() == 0 ) { |