Guest User

Change WooCommerce Shipping and Handling Text

a guest
Jan 8th, 2015
1,420
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // change shipping and handling text to "Delivery Charges"
  2. // Add this to your functions.php
  3.  
  4. add_filter('gettext', 'translate_reply');
  5. add_filter('ngettext', 'translate_reply');
  6.  
  7. function translate_reply($translated) {
  8. $translated = str_ireplace('Shipping and Handling', 'Delivery Charges', $translated);
  9. return $translated;
  10. }
RAW Paste Data