Change a specific text in Woocommerce cart page

				
					add_filter('gettext', 'change_price_text_in_cart_page', 105, 3 );
function change_price_text_in_cart_page( $translated, $text, $domain ) {
    if( is_cart() && $text == 'Price' ) {
        $translated = __('Value', $domain );
    }
    return $translated;
}
				
			

Leave a Reply