Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shelob9/d0b38f09d8dc3519e471cb61d32e2def to your computer and use it in GitHub Desktop.
Save Shelob9/d0b38f09d8dc3519e471cb61d32e2def to your computer and use it in GitHub Desktop.
<?php
add_action( 'caldera_forms_verification_token_failed', function( $form_id ){
$to = 'sendto@example.com';
$subject = 'Caldera Forms Submission Token Fail';
$body = 'Check on form ' . $form_id;
$headers = array('Content-Type: text/html; charset=UTF-8');
wp_mail( $to, $subject, $body, $headers );
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment