Skip to content

Instantly share code, notes, and snippets.

  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save curtismchale/5c111584bd2377afef4d to your computer and use it in GitHub Desktop.
<?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