Forums
-
- Forum
- Posts
-
- Installation
- 28,380
- Troubleshooting
- 62,253
- Themes
- 10,391
- Plugins
- 15,313
- Requests & Feedback
- 14,908
- Showcase
- 3,252
-
Or simply don’t let the post be made with titles that get sanitized into nothingness, or better yet, titles that are shorter than X characters – something like:
function title_regulation($text) {
if (strlen(trim($text))<
bb_die(__('Your title is too short, please say something meaningful!'));
if (strlen($text)>80)
bb_die(__('Your title is too long!'));
return $text;
}
add_filter('pre_topic_title', 'title_regulation',100);
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS