Forums
-
- Forum
- Posts
-
- Installation
- 28,256
- Troubleshooting
- 61,767
- Themes
- 10,301
- Plugins
- 15,220
- Requests & Feedback
- 14,824
- Showcase
- 3,252
-
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