Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM › Editing selected words work together with WPML
Tagged: chance word pemanently, WPML
- This topic has 1 reply, 2 voices, and was last updated 4 years, 5 months ago by
WCFM Forum.
Viewing 1 reply thread
- AuthorPosts
- March 27, 2020 at 3:37 am #113407
info143
ParticipantHello,
i want to rename the following words inside WCFM PERMANETLY:
Product to Artwork
Products to Artworks
Seller/Vendor to Artist
Sellers/Vedors to ArtistsHow can i achieve this? And is it possible to make this working with WPML so i can easely translate this new words into another language?
Hope you can help me out.
Rhanks
Hanna
- April 4, 2020 at 12:24 pm #115234
WCFM Forum
MemberHi,
Please add this code snippet to your site –
function wcfm_custom_0404_translate_text( $translated ) { $translated = str_ireplace( 'Product', 'Artwork', $translated ); $translated = str_ireplace( 'product', 'artwork', $translated ); $translated = str_ireplace( 'Vendor', 'Artist', $translated ); $translated = str_ireplace( 'vendor', 'artist', $translated ); return $translated; } add_filter('gettext', 'wcfm_custom_0404_translate_text'); add_filter('ngettext', 'wcfm_custom_0404_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/Thank You
- AuthorPosts
Viewing 1 reply thread
- You must be logged in to reply to this topic.