Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save curtismchale/3ff43d2d071e96bb617c to your computer and use it in GitHub Desktop.
Save curtismchale/3ff43d2d071e96bb617c to your computer and use it in GitHub Desktop.
<?php
/**
* Allows you to filter the stock bbPress message that reads 'You must be logged in to create new topics.'
*
* @param string $message stock Easy Content Restriction message
* @return string Your custom message
*/
function change_logged_in_topic_message( $message ) {
return 'Our custom message';
}
add_filter( 'wecr_restricted_content_message_logged_in_create_topics', 'change_logged_in_topic_message' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment