Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<?php
/**
* Allows you to filter the stock bbPress message that reads 'You cannot create new topics at this time.'
*
* @param string $message stock Easy Content Restriction message
* @return string Your custom message
*/
function change_cant_create_topics_message( $message ) {
return 'Our custom message';
}
add_filter( 'wecr_restricted_content_message_cant_create_topics', 'change_cant_create_topics_message' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment