Hi,
Thanks for contacting us, you can use a plugin called Loco Translate from the WordPress plugin repository to translate these strings if you have more than a few. If you only have a few you could try the below code in your child theme’s functions.php file.
COPY CODE
// Translate my phrase
add_filter('gettext', 'translate_reply');
add_filter('ngettext', 'translate_reply');
function translate_reply($translated) {
$translated = str_ireplace('Add Friend', 'Connect', $translated);
return $translated;
}
Replace Add Friend with the word you wish to translate and replace Connect with the word you wish to use.
Thanks,
Kieran.
Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution