Hi,
I have made a plugin for gform_post_submission as follows:
add_action("gform_post_submission_1", "post_submission", 10, 2);
function post_submission($lead, $form) { }
...works great, however I have 3 forms which i want to post to 3 different places. Can i add 3 hooks in the same plugin? eg.
add_action("gform_post_submission_1", "post_submission", 10, 2);
function post_submission($lead, $form) { }
add_action("gform_post_submission_2", "post_submission", 10, 2);
function post_submission($lead, $form) { }
add_action("gform_post_submission_3", "post_submission", 10, 2);
function post_submission($lead, $form) { }
or would i need to create a seperate plugin for each?
Many thanks,