Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

include in the price html woocommerce

add_filter( 'woocommerce_get_price_html', 'wpa83367_price_html', 100, 2 );
function wpa83367_price_html( $price, $product ){
    return 'Was:' . str_replace( '<ins>', ' Now:<ins>', $price );
}
Source by wordpress.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #include #price #html #woocommerce
ADD COMMENT
Topic
Name
4+3 =