change the word "shipping"

We're shifting our Forum based support to a more dedicated support system!

We'll be closing our Forum support from 10th June, 2020 and move to Email Support assistance.

  • If you are a WCFM premium add-ons user, contact us- here
  • Want to know more before buying our add-ons? Send Pre sale queries- here
  • If you are a WCFM free user, please open a support ticket at WordPress.org
  • For WCFM App related queries, reach us- here
From now the forum will be read-only!

Viewing 1 reply thread
  • Author
    Posts
    • #83378
      mark zein
      Participant

      Hi guys I would like to change the word “shipping” to “delivery” in the whole site frontend (like this one: http://prntscr.com/pa6o0s ) is there any code I can use it for this?
      thanks in advance 🙂

    • #83712
      WCFM Forum
      Member

      HI,

      Add this code to your site for the purpose –

      function wcfm_custom_2609_translate_text( $translated ) {
      	$translated = str_ireplace( 'Shipping', 'Delivery', $translated );
      	return $translated;
      }
      add_filter('gettext', 'wcfm_custom_2609_translate_text');
      add_filter('ngettext', 'wcfm_custom_2609_translate_text');

      Add this code to your child theme’s functions.php
      In case you do not have child theme then add code using this plugin – https://wordpress.org/plugins/code-snippets/4

      Thank You

Viewing 1 reply thread
  • The topic ‘change the word "shipping"’ is closed to new replies.