Advertisement
fahimmurshed

Change "View Cart" text string

Jan 18th, 2021
1,086
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.22 KB | None | 0 0
  1. // Alter WooCommerce View Cart Text
  2. add_filter( 'gettext', function( $translated_text ) {
  3.     if ( 'View cart' === $translated_text ) {
  4.         $translated_text = 'Your new text here';
  5.     }
  6.     return $translated_text;
  7. } );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement