YEDEK ALMADAN KESİNLİKLE KULLANMAYIN. wp-content/plugins klasörü altında
link-degistir.php oluşturun ve içine şu kodları yazın(r10.net'i ve google.com'u kendine göre değiştirin).
<?php defined('ABSPATH') OR die('olmaz.');
/**
* Plugin Name: Linkleri Değiştir
*/
register_activation_hook(__FILE__, function(){
$posts = get_posts(array('numberposts' => -1 ));
foreach ($posts as $post) {
$content = preg_replace('#(<a.*href=["\']http://)r10.net(["\'/])#i', '$1google.com$2', $post->post_content);
wp_update_post(array( 'ID' => $post->ID, 'post_content' => $content ));
}
});daha sonra eklentiler kısmından eklentiyi aktif edin.
Benim denediğim içerikler;
Alıntı
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
<a href="http://r10.net">r10.net</a>
Alıntı
<a href='http://r10.net/'>r10.net</a>
Alıntı
<a href="http://r10.net/deneme.html">r10.net</a>
değişim sonrası;
Alıntı
Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!
<a href="http://google.com">r10.net</a>
Alıntı
<a href='http://google.com/'>r10.net</a>
Alıntı
<a href="http://google.com/deneme.html">r10.net</a>