I am wanting to add the following action/hook to the addition settings box on the contact form 7 plugin:
add_action( 'wpcf7_before_send_mail', 'wpcf7_callback' );
I cannot get this working at all.
On submit of the form i would like the function "wpcf7_callback" to trigger and thought this would be the way. I cannot put this add_action in the functions.php file as i need to call a different functions for different forms throughout the site.
Does anyone have any suggestions?