Jun 28, 2021 2:43 pm
I am using wpDiscuz on a multilingual site and it's work great. When enabling 'Use Plugin .PO/.MO Files' in the settings, the phrase section disappears. I also couldn't find a filter through which to change the default phrases. Is there one available?
It would be great if the phrases would pass through a filter, so I could alter them in my theme. Or does anybody know a different way to go about this?
Thank you!!
3 Replies
Nov 16, 2022 8:35 pm
It took a while, but I discovered there actually is a filter for this. Just sharing in case it's useful for anybody.
// change the default phrases from WPDiscuz add_filter('wpdiscuz_phrase', function($text, $key, $args){ if($key == 'wc_most_voted'){ $text = __('Most Gratitude', 'plumvillage'); } return $text; }, 20, 3);