• Resolved robaa

    (@robaa)


    Hi All,

    Is there any way to recover old, deleted contact forms? Actually, I don’t even need to be able recover them as such, I just need a list of all the contact forms that ever existed on my system, with dates of when they were created/modified/deleted.

    I realise there isn’t a ‘recycle bin’ or similar, but perhaps these forms leave a trace somewhere in the database etc.?

    I do have a backup (UpdraftPlus) of my site, if that helps in any way.

    TIA,
    Rob

Viewing 3 replies - 1 through 3 (of 3 total)
  • In the posts table of your database, all your contact forms will have a post_type of “wpcf7_contact_form”, so you can use a database query like this to find them all:

    
    SELECT * FROM wp_posts WHERE instr(post_type, 'contact') > 0
    

    You’ll need to make sure your posts table is called “wp_posts” or change that to match your WordPress installation.

    You may be able to run it on your current database; there may be revisions in there for deleted contact forms. I’m not sure if they are removed when you delete a contact form or not.

    If that doesn’t find them all, you’re going to have to look in a backup.

    Those are the only methods I know of.

    Thread Starter robaa

    (@robaa)

    Thanks for that, @linux4me2 – I’ll give it a try. ??

    Thread Starter robaa

    (@robaa)

    OK, turns out the current DB has no trace of the deleted contact forms. But I’ve found what I needed in the site backup. Thanks for your help on this, @linux4me2 — much appreciated! ??

    Best,
    robaa

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Recovering old contact forms?’ is closed to new replies.