是的,你可以。要使用inherit post meta删除帖子,请使用以下代码:
DELETE
p,pm
FROM wp_posts p
JOIN wp_postmeta pm ON pm.post_id = p.id
WHERE p.post_name IN (\'post-1\', \'post-2\', \'post-3\')
将slugs数组传递给WHERE子句。
如果您只想删除带有Posteta的帖子(出于某种原因),请使用以下代码:
DELETE
FROM wp_posts
WHERE post_name IN (\'post-1\', \'post-2\', \'post-3\')