Change Downloadable string to some other text

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!

Best Multi Vendor Marketplace Plugin for WordPress Forums WCFM – Ultimate Change Downloadable string to some other text

Viewing 1 reply thread
  • Author
    Posts
    • #24656
      Shubhamsv
      Guest

      Hi team i would like to replace string “Downloadable” in product page, with html code “Digital <span class=”img_tip fa fa-question-circle-o” data-tip=”A digital file that buyers can download.” ></span>”. should reflect on top as well as under variations.

    • #24731
      WCFM Forum
      Member

      Hi,

      Try this for the purpose –

      function wcfm_custom_translate_text( $translated ) { 
      	$translated = str_ireplace( 'Downloadable', 'Digital <span class="img_tip fa fa-question-circle-o" data-tip="A digital file that buyers can download."></span>', $translated );
      	return $translated; 
      }
      add_filter('gettext', 'wcfm_custom_translate_text'); 
      add_filter('ngettext', 'wcfm_custom_translate_text');

      Thank You

Viewing 1 reply thread
  • The topic ‘Change Downloadable string to some other text’ is closed to new replies.