Как массово убрать в черновики записи сайта до 1 января 24 года?

у меня на сайте 40 000 записей от 2022 года

как мне скрыть все записи массово до 1 января 24 года

Прямой SQL-запрос

UPDATE wp_posts 
SET post_status = 'draft' 
WHERE post_type = 'post' 
  AND post_date < '2024-01-01 00:00:00' 
  AND post_status = 'publish';

Пример запроса:

guest
Закрыть меню
ZAPLATA.RU | Магазин готовых блогов Wordpress с автонаполнением
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.