1

How i can restore all posts to the closest revision to a particular date via sql query?

4
  • 1
    I would not attempt this in pure SQL. – s_ha_dum Jan 4 '16 at 23:21
  • I must restore 2000 posts :/ – h404 Jan 4 '16 at 23:28
  • 1
    Still not something for pure SQL. Handle most of the logic in PHP. – s_ha_dum Jan 4 '16 at 23:35
  • wp_update_post() and wp_get_post_revision() – Pieter Goosen Jan 5 '16 at 5:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.