function.php içine aşağı kodları yapıştır.

function replace_keywords_fn($where)
{
$KWs = array('KelimeBir', 'Kelimeİki');
$URLs = array('http://linkbir.com', 'http://linkiki.com');

$pattern = array();
$replacement = array();
for($i=0; $i {
$pattern2 = '/]*>(.*?)'.$KWs[$i].'(.*?)/';
if(preg_match($pattern2, $where))
continue;

$pattern[$i] = '/([ ][!$%&()*+,./:;=?@_{}-])('.$KWs[$i].')([ ][!$%&()*+,./:;=?@_{}-])/';
$replacement[$i] = '123';
}
return preg_replace($pattern, $replacement, $where, 1);
}
add_filter('content_save_pre','replace_keywords_fn');