You can hook to translation filters of WordPress to change any word or phrase. These filters are: gettext
, ngettext
and gettext_with_context
:
add_filter('gettext', 'change_bbpress_wording', 10, 3);
add_filter('ngettext', 'change_bbpress_wording', 10, 3);
add_filter('gettext_with_context', 'change_bbpress_wording', 10, 3);
function change_bbpress_wording ($translated, $untranslated, $domain) {
if ($domain == 'bbpress') {
$translated = str_ireplace('Forum', '*desired word*', $translated );
$translated = str_ireplace('Topic', '*desired word*', $translated );
$translated = str_ireplace('Reply', '*desired word*', $translated );
}
return $translated;
}
Note that we use str_ireplace
which is case-insensitive, for case-sensitive replacement use str_replace
instead.
See gettext filter hook codex page for more examples.
Related Posts:
- Child theme works in local environment but is not working on remote
- What are the best practices for maintaining and deploying several parent themes?
- How to create a non-responsive WordPress Theme Using Genesis Framework?
- Stylesheet overriding in Child theme
- Opinions and recommendations on the best barebones base theme [closed]
- How to override JavaScript files in child theme?
- Versioning @import of parent theme’s style.css
- How to add code to Header.php in a child theme?
- Why does my child theme CSS get called twice?
- How to *remove* a parent theme page template from a child theme?
- How do I make my child theme re-apply the settings that were customised when its parent was active?
- Integrate WordPress and bbpress profiles?
- How do themes provide support for child themes?
- Attributing a version number to a child theme’s main stylesheet
- Preserving theme settings in child theme
- Is it possible to make grandchild themes?
- how do I queue my Child stylesheet/s *after* every Parent stylesheet/statement?
- How to cache bust a child theme style.css
- Is a text-domain necessary for a child theme
- How to modify single.php in a child theme?
- Cannot get Child Theme to load latest version of style.css
- Issues enqueueing parent & child theme stylesheets with revised Codex method
- @package & @subpackage: how to use with child themes
- How to override function in child theme
- Why is the Child Theme Stylesheet Not Loading?
- Hiding Parent Theme
- get_stylesheet_directory() vs get_template_directory() for child theme
- Seamless integration between WordPress and BBpress
- Theme Customization API and child themes
- How to change the text of link ‘Home’ in bbPress forum breadcrumb?
- get_parent_theme_file_path vs. get_template_directory
- How to Add Customizer Setting in Child Theme
- Git vs Child Theme
- Give priority to child theme stylesheet
- Child theme does not overwrite parent themes style.css
- how to call files in child theme?
- Get Parent Theme Author Name
- Get parent theme version
- How do I set up real anonymous posting in bbpress forums? [closed]
- Optimal approach for replacing the 8 header images in a child theme?
- how to redirect to a custom password retrieval page
- How to transfer changes to a child theme?
- WordPress master + child themes + Git workflow
- How to edit bbPress template files – WordPress + BuddyPress + bbPress? [closed]
- Best practices – Should I create a child theme vs. customizing a framework theme? (such as HTML5 reset)
- How to use parent theme’s enqueue methods
- How do I override a parent theme’s language files with a child theme?
- something like is_childtheme()
- Do all files in child theme override the parent?
- Child theme showing a blank page
- Child theme preview missing
- Child Theme Performance
- is there a simple way to list every templates / php files used to generate a specific page?
- How could child theme be different than parent theme if I haven’t made changes?
- How to solve “Warning: Use of undefined constant” when overriding a parent theme function in the child theme?
- Do I need to update the child theme too after updating the parent?
- get_template_directory vs get_stylesheet_directory
- Theme customizer: How do you grab the value later?
- Post format selector in Thematic child theme post class
- Developing a childtheme, how to disable the parents templates?
- Using WordPress functions on other sites
- Under heavy cache conditions, updating the parent theme don’t reflect changes with child theme enabled
- How to maintain wp_enqueue_style dependencies set in parent theme style enqueuing
- Child Theme, Functions.php Issues
- Redefining function in child themes
- How do I check for child theme files first using include, before going to parent theme?
- Create a customizable child theme
- How can you change default color scheme in a Twenty Fifteen child theme?
- Use admin options from parent theme in child theme
- When activating a child theme, what core settings have to be reset ie; Custom Menus etc?
- Hwo to turn off “get_parent_theme_file_path” in child-theme?
- Setting up the child theme so as to enable right-to-left WordPress?
- Overriding parent theme file
- How to “remove” file from parent theme
- How to override the Parent theme Function into child themes functions.php
- How can I make new .css file in child theme override styles in child theme’s style.css
- add sidebar area to header of child theme
- Enqueue styles properly in a child theme and stylesheets location
- Enqueue more than two CSS styles in a child theme functions.php
- Proper way to make a tweaked theme into child-theme setting?
- Promoting child theme to stand alone
- How to disable updates in WordPress theme
- Style.css in child theme is loaded before Bootstrap
- Activating child theme returns “active theme is broken”
- Overiding functions.php with child-theme
- How are updates to the style.css file in child theme recognized?
- When developing a distributable Theme, does it HAVE to be “inheritable”?
- How do I set up a child-theme without using @import
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Child theme error “Template is missing”
- bbPress or WordPress + forum plugin?
- Dequeue only stylesheets but not inline style added using wp_add_inline_style
- How to change default header image dimensions in twentyfourteen child theme?
- Overwrite CSS with without deleting it
- Adding or modifying in files of parent theme via child’s function.php
- Overriding a theme redux file in child theme
- Enqueue stylesheets if parent theme has more than one .css file
- replace parent theme images in child theme
- Website Broken on Activating Child Theme! [closed]
- How can I & how do I change text displayed in comment via child theme