Forums
-
- Forum
- Posts
-
- Installation
- 27,631
- Troubleshooting
- 60,564
- Themes
- 10,191
- Plugins
- 14,981
- Requests & Feedback
- 14,607
- Showcase
- 3,238
-
function bb_target_blank( $text ) {
$text = preg_replace('|<a (.+?)>|i', '<a $1 target="_blank">', $text);
return $text;
}
add_filter('post_text', 'bb_target_blank',255);
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS