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.

Hooks not firing

  1. gcampbell

    I can't seem to get the gform_post_submission OR the gfrom_pre_submission hooks to fire after my form submission.

    I am embedding the forms in my theme with php. The form submits and the entry is saved to the database, but its not firing the hooks??

    In my functions.php I have the following

    834 add_action("gform_post_submission", "dcreate_event",10,2);
    835 function dcreate_event($form)
    836 {
    839                 print_r($entry);
    840                 die('refresh me');
    841 }
    The Wordpress version is 2.9.2
    Posted 10 years ago on Friday July 8, 2011 | Permalink
  2. The hooks do fire, the problem is going to be with your code. What you are trying to do may not be possible with how you have your code implemented. I'm not sure if you can print the $entry object that way.

    Posted 10 years ago on Friday July 8, 2011 | Permalink
  3. FYI, this works for me, to print $entry.

    add_action( 'gform_post_submission', 'process_admission_form', 10, 2 );
    function process_admission_form($entry, $form){
    	print_r( $entry );
    Posted 10 years ago on Wednesday July 20, 2011 | Permalink