Reply To: Edit bbpress notification
Well…I’ve run into a problem. I have this code that removed the word “ago” from the freshness layout:
function change_translate_text( $translated_text ) {
if ( $translated_text == '%s ago') {
$translated_text = '%s';
}
return $translated_text;
}
add_filter( 'gettext', 'change_translate_text', 20 );
The only place I want to include the word “ago” is on the top of the forum within the forum data block. Right now it reads: This forum contains x topics, and x replies, and was last updated by x 4 minutes.
When I use the code above and manually add the word ago at the end of the line, I get an error because it was already declared. Is there a way around this? Thank you.