This action runs directly before the email for a saved message is resent. To be more specific, it is called right before the saved message is passed to
Caldera_Forms_Save_Final::do_mailer() and before the caldera_forms_mailer filter is applied to the email that is being resent by Caldera Forms, allowing you an opportunity to further customize how Caldera Forms resends saved emails.
This filter exposes three parameters:
- $form – The form configuration as an array
- $entry_id – The entry ID for the entry being resent. This is an integer.
- #data – An array of submission data.
This action was added in Caldera Forms 1.5.2
Where Does This Code Go?
When using WordPress hooks to customize Caldera Forms or other plugins you should not modify the plugin files, or you will lose your changes when you update the plugin. Instead you should create a small plugin to hold the custom code. It's easy, learn how here.
Technically you can add the custom code to your theme's functions.php, but then you will not be able to change your theme and keep these customizations.