Say my custom hook is something like:
add_action('gform_post_submission', 'do_something');
function do_something($entry){
//Do something code
}
Where exactly do I place the above code in form_display.php (or elsewhere) for it to trigger after successful form submission? A line number would be most helpful.
-------
Another question... all the sample code has:
add_action("gform_post_submission", "set_post_content", 10, 2);
What is the 10 and 2?
Thanks!