BuddyDev

Search

[Resolved] Would like to change “Report” to “Feedback”

  • Participant
    Level: Initiated
    Posts: 8
    BrianGumble on #43847

    Hi there,
    I am using the buddypress moderation tools and I’d like to switch the word “report” to “feedback” in the activty stream. I want users to give constructive feedback and want to do away with the term “Report.” How can I change this in my app or what kind of custom.php code do I need?
    Thank you so much, I am so close to creating my dream product 🙂

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #43862

    Hello Brian,

    Thank you for posting. We can not modify button text contextually on the user or group pages. But you can use the following code to rename it on the activity directory page.

    
    add_filter( 'bpmts_report_button_args', function ( $args ) {
    
    	// If not any directory page return args.
    	if ( ! bp_is_activity_directory() ) {
    		return $args;
    	}
    
    	$args['label'] = __( 'Feedback' );
    
    	return $args;
    } );
    
    

    We can not modify this on your app as that is a different environment. Please check.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 8
    BrianGumble on #43963

    Ok, thank you. And I would post this as a bp-custom.php file under the content>plugins section? Thank you.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #43966

    Hello Brian,

    Yes, You can place this code in the “bp-custom.php” file.

    Regards
    Ravi

  • Participant
    Level: Initiated
    Posts: 8
    BrianGumble on #44108

    Thank you it worked, I just added it to my file. Easy pezy.

  • Keymaster
    Level: Yogi
    (BuddyDev Team)
    Posts: 2908
    Ravi on #44113

    Hello Brian,

    Thank you for the acknowledgement. I am glad to help you.

    Regards
    Ravi

The topic ‘ [Resolved] Would like to change “Report” to “Feedback”’ is closed to new replies.

This topic is: resolved