Home › Forums › Ultra Community › How-To and Troubleshooting › Need to change Groups to Teams › Reply To: Need to change Groups to Teams
March 3, 2019 at 5:55 pm
#11925

MihChe
Keymaster
Hi @rocky,
This is what you can use to change ANY of the translatable strings
add_filter('gettext', function ($translation, $text, $domain){
if($domain === 'ultra-community')
{
switch (true)
{
case $text === 'Groups' : return 'Teams';
case $text === 'Group' : return 'Team';
}
}
return $translation;
}, 10, 3);