PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Automatically Delete Multiple Entries

  1. Hi--

    I successfully used this code http://pastie.org/1435911 to delete the entry for one form. I would like to do this for many different entries. I understand I need to duplicate the code multiple times for the different forms.

    When I tried duplicating the code, though, I keep getting an error message. Is there an example somewhere of what it means to duplicate the code multiple times?

    Thanks,

    Erik

    Posted 11 years ago on Friday January 25, 2013 | Permalink
  2. I figured it out.

    To add to this code http://pastie.org/1435911, I just did this:

    add_action('gform_post_submission_8', 'remove_form_entry', 10, 2);
    add_action('gform_post_submission_18', 'remove_form_entry', 10, 2);
    add_action('gform_post_submission_57', 'remove_form_entry', 10, 2);
    
    function remove_form_entry($entry, $form){
        global $wpdb;

    Thank you!

    Erik

    Posted 11 years ago on Sunday January 27, 2013 | Permalink
  3. Thank you for sharing your solution.

    Posted 11 years ago on Wednesday January 30, 2013 | Permalink

This topic has been resolved and has been closed to new replies.