I want to know if there is a way to restore contents of permanently deleted users from my WordPress page.

  • 1
    Before you delete the user you are asked if you want to assing the contents to another user or if you want to delete the associated content as well with the user. If you don't have a backup to restore from, you have nothing to do, permanent means permanent. – cybmeta Jan 16 '18 at 17:02
  • Thank you, there was not my website, I know how to delete users without deleting the files, but a friend ask me for help and i was trying to find if there was a solution for his fatal error. – eifersucht Jan 18 '18 at 9:18

None that don't involve a backup. If you have a backup, you'll have to do some work to restore only a certain user's data without resetting everything to that point. I'd say import the backup into an empty database, then copy data over either with SQL (INSERT INTO wp_posts SELECT FROM otherdb.wp_posts WHERE post_author = ...) or with a script (getting the usermeta, posts and postmeta data).

If you don't have a backup, you might get somewhat lucky with caches (Google, Internet Archive), but recovering content from that will be more labor intensive and you will likely not get all the content.

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.