WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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>';
    echo '</pre>';



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 '14 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 '14 at 21:00
Hi! Unfortunately not in scope here since code is not publicly available and cannot be easily looked at. – Rarst Jan 5 '14 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 '14 at 21:06
Hay Rarst I have added some more info please unhold this question so that I can get answers – Nicks Jan 5 '14 at 21:18