Böyle bir eklenti var mı?
1
●253
- 20-10-2013, 14:07:51Ayrı bir sistem yapabilirsin.
Tüm postları alırsın. Bunların post_title kısmında istediğin kelime varsa post status'u trash olarak güncellersin. aşağıda vermeye çalıştım.
$tum_postlar = get_posts('showposts=-1&post_status=publish'); $hata[] = ''; foreach($tum_postlar as $post) : if( strpos($post->post_title, 'engelli kelime') ) { wp_update_post('ID='.$post->ID.'&post_status=trash'); $hata [] = $post->title.' isimli yazı silindi.'; } endforeach; print_r($hata);