Skip to content

Instantly share code, notes, and snippets.

@curtismchale
Last active August 29, 2015 14:17
Show Gist options
  • Save curtismchale/4f56b56e2de8d486e3c6 to your computer and use it in GitHub Desktop.
Save curtismchale/4f56b56e2de8d486e3c6 to your computer and use it in GitHub Desktop.
<?php
/**
* Override topic feedback message
*
* @param string $translated_text_out the original feedback text
* @param string $translated_text_in The text that bbPress sent in to the function, or the 'default' text bbPres uses here
*
* @return string $translated_text_out the filtered feedback text
*/
function custom_topic_feedback_messages( $translated_text_out, $translated_text_in ) {
switch ( $translated_text_in ) {
case 'You cannot reply to this topic.': // put your language string here
$translated_text_out = 'Put in your message going out';
break;
}
return $translated_text_out
} // topic_feedback_messages
add_filter( 'wecr_bbp_topic_global_message', 'custom_topic_feedback_messages', 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment