If you want to replace the “View Cart” text on the menu cart dropdown with your own, use the following PHP snippet:
// Alter WooCommerce View Cart Text
add_filter( 'gettext', function( $translated_text ) {
if ( 'View cart' === $translated_text ) {
$translated_text = 'Your new text here';
}
return $translated_text;
} );
Alter Your new text here per your need.





















