如何停止wordpress 評論pingback

煩人的垃圾pingback 評論占用了系統大部份的空間

可以在控制台的Setting > discussion 把第二項取消 :

DisableTrackbacksCompletelyonWordpress

 

舊有的刪除需要到MYSQL 運行語句一次過清掉 :

DELETE FROM wp_options WHERE option_name LIKE ('_transient_%');
DELETE FROM wp_comments WHERE wp_comments.comment_type = 'pingback';
DELETE FROM wp_comments WHERE wp_comments.comment_type = 'trackback';
DELETE a,b,c FROM wp_posts a LEFT JOIN wp_term_relationships b ON (a.ID = b.object_id)
LEFT JOIN wp_postmeta c ON (a.ID = c.post_id) WHERE a.post_type = 'revision';