Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Hey I am using gravity forms v1.7.13 I created a form with two fields name and email and I need to modify form data before creating entries in database for that I am using gform_pre_submission_filter and my code is something like this:

I Have added this to my functions.php

function gf_filter($form) {
   //Here I am printing the form object i get after submission. 
    echo '<pre>';
    print_r($form);
    echo '</pre>';
    exit;

}

add_action('gform_pre_submission_filter_1','gf_filter');

but the forms keeps on loading and doesn't shows the $form object I don't know what's wrong.

share|improve this question

closed as off-topic by Rarst♦ Jan 5 at 21:00

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

    
Where are you adding the action? That is, where in your code? Which file? And where in that file? –  s_ha_dum Jan 5 at 21:00
    
Hi! Unfortunately not in scope here since code is not publicly available and cannot be easily looked at. –  Rarst Jan 5 at 21:01
    
Hi I added this code in my functions.php and I want to see form entries after submission so I have print_r() form object but that doesn't work –  Nicks Jan 5 at 21:06
    
Hay Rarst I have added some more info please unhold this question so that I can get answers –  Nicks Jan 5 at 21:18