fahimmurshed

Change "View Cart" text string

Jan 18th, 2021
755
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. } );
RAW Paste Data