Re: Add nofollow to links
hi ya’ll
I am sorry I was not back earlier on this post but I have managed to solved everything without touching the core and my method is extensible to whatever you want to do.
//add target=_blank to post links
function bb_target_blank( $text ) {
return preg_replace_callback('||i', 'bb_target_blank_callback', $text);
}
function bb_target_blank_callback( $matches ) {
$text = $matches[1];
return "";
}
add_filter(‘post_text’, ‘bb_target_blank’);
If you require further support then you can always reach to me at cordoval at gmail dot com and you can send me a small token of your appreciation via paypal. Thanks.