How to call wpforms actions
-
Is there a best practice on how to call wpforms actions to define customized functions?
I am using “wpforms_display_submit_after” and “wpforms_process_before” for now.I have seen examples of people using the actions like that and in the customized function they check which form ID was called via a couple of IF statements to trigger form specific activities.
But I have also seen examples which add the formID at the end of the action, e.g.
wpforms_display_submit_after_23
wpforms_display_submit_after_12
wpforms_process_before_23
wpforms_process_before_12What is your recommendation / best practice on how to call actions?
- The topic ‘How to call wpforms actions’ is closed to new replies.