wordpress是个好东西,但是有时就是评论太垃圾,如何处理这些评论,怎么关闭评论,其实是有很多方法的,但是通过mysql来处理是最彻底的,下面兩条语句,相信对大家有用:

删除评论
delete FROM `wp_comments` WHERE `comment_approved` NOT LIKE ‘1’;

禁止评论

UPDATE wp_posts p SET comment_status = ‘closed’,ping_status = ‘closed’ WHERE comment_status = ‘open’;