Created
July 11, 2014 03:47
-
-
Save curtismchale/69f2e475cfe8f6829cda to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Allows you to filter the stock bbPress message that reads 'You cannot reply to this topic:' | |
* | |
* @param string $message stock Easy Content Restriction message | |
* @return string Your custom message | |
*/ | |
function change_cant_reply_message( $message ) { | |
return 'Our custom message'; | |
} | |
add_filter( 'wecr_restricted_content_message_cant_reply', 'change_cant_reply_message' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment