Change text “My Basket” in woocommerce artificer theme

Technically, woocommerce_cart_link() is added to the site just before the menu by the artificer_header_cart_link() function, which is pluggable, meaning you could change that function to call a function that duplicates woocommere_cart_link() but with the text changed.

However, I think the easiest thing to do is to tap into the gettext filter which kicks in for every translatable string…. and all of Woo’s themes are fully translatable.

This will change any “My Basket:” string anywhere in the theme to say “My Cart:”

function wpa_109750_change_text( $translated_text, $text, $domain ){
    if( $domain == 'woothemes' && $translated_text == 'My Basket:' )
        $translated_text="My Cart:";

    return $translated_text;
}
add_filter( 'gettext', 'wpa_109750_change_text', 10, 3 );

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)