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.

Deleting Form Entries

  1. vixvii
    Member

    In a previous post I asked for help in deleting form entries and was shown to a different post that was of great help. (http://www.gravityhelp.com/forums/topic/purposefully-not-save-form-in-entries-database#post-15601)

    add_action('gform_post_submission_1', 'remove_form_entry', 10, 2);
    function remove_form_entry($entry, $form)

    Could you possibly just explain the 10, 2 for me? - The post only mentioned changing the 1 to the form ID.

    Posted 13 years ago on Saturday August 6, 2011 | Permalink
  2. The 1 at the end of gform_post_submission_ is the form ID. Change the 1 to your form ID.

    The 10 is the priority that the function should be run at (10 is default. Lower numbers make the function run sooner, higher numbers make it run later), and the 2 is the number of arguments the function accepts. These are related to the built in WordPress function add_action.

    You can read more about it here:
    http://codex.wordpress.org/Function_Reference/add_action

    Posted 13 years ago on Sunday August 7, 2011 | Permalink
  3. vixvii
    Member

    Thanks so much for this

    Posted 13 years ago on Monday August 8, 2011 | Permalink

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