I have accidentally deleted a WP user. By deleting it, WP removed all the media files, pages etc.
I could retrieve pages and posts from trash. But I could not restore media items. Is there a way to restore all items from trash back?
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It only takes a minute to sign up.Sign up to join this community
When deleting a user, WordPress displays a warning that unless you attribute the user's posts to a new user, it's posts will be deleted and you cannot undo those deletions.
That means the only way to restore the posts and media is to restore a backup of the WordPress instance or database which you hopefully have.