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 'Oh bother! No topics were found here!' | |
* | |
* @param string $message stock Easy Content Restriction message | |
* @return string Your custom message | |
*/ | |
function change_no_topics_message( $message ) { | |
return 'Our custom message'; | |
} | |
add_filter( 'wecr_restricted_content_message_no_topics_found', 'change_no_topics_message' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment