Tamam işleyiş doğru fakat insert etme yanlış. Str replace ile istediğin metnin yerine kendi metnini eklemelisin. Mesela ikinci noktadna sonra istediğini eklemek isteyelim.

function add_post_content($content) {
if(!is_feed() && !is_home()) {

function str_replace_nth($search, $replace, $subject, $nth)
{
$found = preg_match_all('/'.preg_quote($search).'/', $subject, $matches, PREG_OFFSET_CAPTURE);
if (false !== $found && $found > $nth) {
return substr_replace($subject, $replace, $matches[0][$nth][1], strlen($search));
}
return $subject;
}

return str_replace_nth('.', '.eklenecek', $content, 2);

}

}
add_filter('the_content', 'add_post_content');


Dikkat etmen gereken nokta yerine ekleyeceğin ifade değişen ifade ile baslamali. Dikkat et nokta için yine nokta ile başlayan metin oldu(.eklenecek) noktayi unutma. Telefondan yazdım kodları dene sonucu yazarsın .

Fonksiyon kaynak: https://stackoverflow.com/questions/19907155/how-to-replace-a-nth-occurrence-in-a-string