Re: target _blank
I tried this, I’m using 1.0.1
And I got:
Warning: Cannot modify header information – headers already sent by (output started at /home/onlin196/public_html/forums/my-plugins/tabbladen.php:14) in /home/onlin196/public_html/forums/bb-includes/functions.bb-pluggable.php on line 232
Below you have the whole code i used
<?php
/*
Plugin Name: Nieuwe tabblad openen
Plugin URI: http://bbpress.org
Description: opent links in een nieuwe venster
*/
function bb_target_blank( $text ) {
$text = preg_replace(‘||i’, ‘‘, $text);
return $text;
}
add_filter(‘post_text’, ‘bb_target_blank’,255);
?>