Multi Vendor Marketplace Plugin | WCFM Marketplace › Forums › WCFM – Delivery › Change Delivery Boys to Delivery Team
- This topic has 9 replies, 7 voices, and was last updated 4 years, 6 months ago by Craig.
- AuthorPosts
- August 15, 2019 at 10:07 am #76729S CharltonParticipant
Hi, I need to make this plugin gender neutral. Is there any way to change “boys” to “team”?
I have also tried updating WCFM Settings>Menu Manager and updated url from boys to team, but it only changes the side title and doesn’t update the URL or the main “Manage Delivery Boys” title – even after refreshing permalinks. Thank you.
- August 20, 2019 at 7:13 am #77436WCFM ForumMember
Hi,
Please add this code to your site –
function wcfm_custom_2008_translate_text( $translated ) { $translated = str_ireplace( 'Boys', 'Team', $translated ); return $translated; } add_filter('gettext', 'wcfm_custom_2008_translate_text'); add_filter('ngettext', 'wcfm_custom_2008_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
- February 24, 2020 at 5:35 am #108436CoralbeautyParticipant
I have the same problem. The code you supplied only worked in one place. I can still see “boys” on the list of staff under “manage delivery ____” and “add delivery boys” section. (Please see my pics attached.) Please let me know how I can edit those other fields to say “drivers” instead of “boys”.
Thank you!
Attachments:
You must be logged in to view attached files. - February 25, 2020 at 6:20 pm #108748SushobhanKeymaster
Hello,
The code snippet shared above find and replaces any occurrence of Boys with Team. In your screenshots it is mentioned as Boy not Boys, so those didn’t change. Please try the modified version of the snippet as below-function wcfm_custom_2008_translate_text( $translated ) { $translated = str_ireplace( array('Boys', 'Boy'), 'Team', $translated ); return $translated; } add_filter('gettext', 'wcfm_custom_2008_translate_text'); add_filter('ngettext', 'wcfm_custom_2008_translate_text');
Thanks!
- April 4, 2020 at 2:38 am #115184CraigParticipant
Any chance that this terminology will be updated in the core plugin. Using a generic term such as “delivery” , “Delivery Team”, Delivery service” etc would be better than the “boys” term. And I’m thinking would be better for any marketplace.
All the delivery girls are getting really mad about this.
- April 4, 2020 at 8:12 am #115215CraigParticipant
Sushobhan I have implemented the above code and it works great to remove the word “boy” and “boys”. Thanks for providing that.
I still think you should consider removing the terms “boy” and “boys” with “service” or something like that for all marketplaces as the term “boys” is not very professional.
- April 12, 2020 at 3:07 am #118189DanaParticipant
Agreed, maybe change to individual or person.
- April 12, 2020 at 11:53 am #118309SushobhanKeymaster
Hi Dana,
I will let my Dev team know about this. May be in future we will add a settings for this label. But, till then kindly use the snippet provided above.
Thanks! - May 19, 2020 at 2:23 pm #132995CAMParticipant
Another vote for changing ‘boys’ — whatever term is used should be gender-neutral.
- May 20, 2020 at 10:47 pm #133608
- AuthorPosts
- You must be logged in to reply to this topic.