此SQL代码将禁用旧帖子和页面上的pingback:
UPDATE wp_posts SET ping_status=\'closed\' WHERE post_status = \'publish\' AND post_type = \'post\';
UPDATE wp_posts SET ping_status=\'closed\' WHERE post_status = \'publish\' AND post_type = \'page\';
我希望在所有旧的自定义帖子类型上禁用注释和pingback。
默认情况下,我注意到Wordpress允许在新页面上发表评论。有没有办法解决这个问题?