Hi there,
I was wondering if the below stuff could be optimised? I am sure I have seen somewhere a "trick" where the _1, _3, _4 etc. gform_after_submission is called dynamically, but cannot find it.
I would basically like to define the array of form ids first and then loop through creating the necessary add_action calls dynamically:
I am not sure at all about the right syntax for doing this though!!! Is there a way to do this? Is the above correct?