quickest way is
add_filter( 'gettext', 'rew_bbpress_translate', 20 , 3 );
function rew_bbpress_translate( $translated, $text, $domain ) {
if ($domain == 'bbpress') {
$words = array(
'Website' => 'WhatsApp no'
);
$translated = str_replace( array_keys($words), $words, $translated );
}
return $translated;
}
Put this in your child theme’s function file – or use
Code Snippets
Nothing changed… I applied this as:
1. created child theme folder in my — wp-content >> themes >> astra-child
2. created functions.php file inside that folder with provided code.
3. Showed in themes list.
On viewing my discussion page nothing changed.
and this is looking at someone’s bbpress profile?
ie
mysite.com/users/&username%/edit/
For field name change I made changes in these files (in the wp-content >> plugins >> bbpres):
includes/admin/metaboxes.php
templates/default/bbpress/form-anonymous.php
includes/admin/metaboxes.php
templates/default/bbpress/form-user-edit.php
templates/default/bbpress/user-profile.php
Now it’s showing ‘Whatsapp number:’ instead of ‘Website:’. Still, there is a problem remaining, as I didn’t change the php code (not familiar in PHP coding) for website url, after entering the phone number it’s showing like this ‘http://9669856568’.
Also made changes in all css files in this directory wp-content/plugins/bbpress/templates/default/css/, for font size change. From font-size: 12px; to font-size: 18px;.