Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

change cart totals text woocommerce

add_filter( 'gettext', 'change_cart_totals_text', 20, 3 );
function change_cart_totals_text( $translated, $text, $domain ) {
    if( is_cart() && $translated == 'Cart totals' ){
        $translated = __('Your custom text', 'woocommerce');
    }
    return $translated;
}
Source by www.buzzphp.com #
 
PREVIOUS NEXT
Tagged: #change #cart #totals #text #woocommerce
ADD COMMENT
Topic
Name
6+4 =