Skip to:
Content
Pages
Categories
Search
Top
Bottom

Where to change wording


  • timmelody
    Participant

    @timmelody

    Hi,

    I would like to change some of the wording in bbPress.

    For example, instead of

    Create new topic in . . .

    I’d like it to say

    Create new post . . .

    or whatever.

    Which files would I look in to edit? Or (long short) is there even a plugin to edit?

    FYI, yes, I am aware that on the next update such changes will be overwritten, etc.

    Thanks for help!

Viewing 1 replies (of 1 total)

  • Robin W
    Moderator

    @robin-w

    If it is text within wordpress/bbpess then the following code in you functions file will change it

    //This function changes the text wherever it is quoted
    function change_translate_text( $translated_text ) {
    	if ( $translated_text == 'old text' ) {
    	$translated_text = 'new text';
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'change_translate_text', 20 );
    

    But ‘text’ may be made up of code. For instance in your ‘create new topic in’ – the word topic may actually be a variable (I haven’t looked !), and the wrap around text used elsewhere for instance ‘create topic in’, ‘create reply in’, ‘create forum in’

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.