Hi I need to change the product price of the selected product on Woocommerce
i have this function
add_filter( 'woocommerce_get_price_html', 'custom_price_html', 11, 2 );
function custom_price_html($price_html, $product){
if (is_product()) {
// here I change the product price or styling
}
}
the problem is that function executes on the product page... but also on the related products on the bottom of the page.
how can I identify only the CURRENT PRODUCT PRICE ?!
Thanks !