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
- 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 to modify single.php in a child theme?
- How to override function in child theme
- Theme Customization API and child themes
- How to Add Customizer Setting in Child Theme
- Get Parent Theme Author Name
- Do I need to update the child theme too after updating the parent?
- Using WordPress functions on other sites
- How do I check for child theme files first using include, before going to parent theme?
- Create a customizable child theme
- Use admin options from parent theme in child theme
- add sidebar area to header of child theme
- Overiding functions.php with child-theme
- Find a Parent Theme’s stylesheet $handle when it registers a stylesheet
- Enqueue stylesheets if parent theme has more than one .css file
- Website Broken on Activating Child Theme! [closed]
- Child theme implementation issues
- Hide post meta data on a specific category
- Add post dates from child theme and change font size on homepage post
- Child theme undefined variable error
- get_theme_mod is returning a number rather than my image file
- WP Customizer Fatal Error trying to load class in child theme
- @font-face broken in child theme
- How to install bootstrap in child theme
- Child Theme vs. Jetpack Editor
- Child theme grabbing wrong location fo parent theme files
- WordPress Child Theme PHP Code Change Issues
- Create child theme after costumizing the original
- How to enqueue scripts in order of Head section
- Generate PO File
- Scratch theme needs to be a child theme, but for which parent? [closed]
- Will the use of a child theme create problems with commercial parent theme’s options?
- Linking to Child Theme PHP Files
- WordPress Bootstrap Problem
- Child Theme disable customizer defaults
- Which header is served
- Add custom function to child function.php
- Child theme problem
- Undefined functions on the server
- Changes to child theme are not visible on my site [closed]
- How do WP child-themes work? [closed]
- How to convert WordPress comments to bbPress replies [closed]
- Is a Child Theme required?
- How do I remove a customiser option from a parent theme in a child theme?
- Moving from parent theme to child theme without losing configurations
- can the footer be included on a child theme
- Is there a way to override require_once of the main theme on the child theme?
- How change child theme’s boxed layout to fullwidth in genesis? [closed]
- Changes in my child theme from customizer not appearing in style.css?
- styles from child theme not loaded for file other than style.css
- why post_class() function apply css classes to all other files?
- Fatal error and use of undefined constant in child theme unless I redefine it
- wp_get_current_user() and is_user_logged_in() in child theme’s functions.php file don’t work
- Trouble translating a Child Theme
- Child theme with flatsome theme crashes website
- How to make child theme in wordpress with wp_enqueue_style ? Using Enough Theme
- Customize file on inc folder on child theme
- Proper way to show admin bar in HTML5 Blank theme
- I want to edit it on my laptop as a child theme and transfer the files to my server. I don’t know how
- Adding function from parent theme to child theme
- Translated words not showing child theme
- Correct way to customise a child theme
- Modify Twentyeleven child theme CSS – How to change body font size?
- Scrolling on reply url
- Child theme stylesheet not reflecting the changes
- Best way to edit/change comment-template.php without changing the core
- How to stop customizer settings inheritance from parent to child theme?
- Making a child theme in order to update the parent theme
- change html and css in template files in child theme
- Why does my child theme’s enqueue of styles mess up the order of script enqueues from the main theme?
- Where can I edit/see the HTML of this WordPress free theme?
- Fixed bottom menu on mobile doesn’t work on search included in Child Theme of Storefront
- Unhook a function within a class in the child theme
- Enqueuing multiple stylesheets with a child theme
- menu, header and footer is not shown in the appearance after creating the child theme
- The parent theme is missing. Please install the “bp-default” parent theme
- Will dequeueing in child theme functions.php file prevent Google Fonts from loading?
- how to fix loading scripts in child theme?
- Calling Category name without the link
- How to stopping auto scrolling after submitting the form?
- When I change some content in function of template-tags file in inc folder then its not working and show same as loke before
- How to enable truly anonymous posting in bbPress forums? [closed]
- Child Theme Issue – activated but does not show in preview
- Changing a setting in the wp-admin/customize.php reverts CSS styles to parent theme [closed]
- Why won’t my Custom CSS Load
- How to configure folders with ‘Child Theme’?
- Remove HTML from search.php of my parent theme
- Cannot modify a registered custom post type rewrite slug
- Child theme only loads on home page
- Changes in comments.php in the child theme does not show up on the site
- WordPress theme Modifications not showing up on live server
- bbPress – select a topic reply as “answer”
- Vague Errors from VIP Scanner Plugin
- How to create my own style.css file in an wordpress child-theme
- How to handle a large child theme