Skip to content

Instantly share code, notes, and snippets.

@kasparsd
Created November 25, 2018 08:49
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 kasparsd/e501a0d83b670d22d66d5ddf6e69456d to your computer and use it in GitHub Desktop.
Save kasparsd/e501a0d83b670d22d66d5ddf6e69456d to your computer and use it in GitHub Desktop.
Contact Form 7 Lead info with country support for Storage for Contact Form 7
<?php
add_filter( 'wpcf7_special_mail_tags', function( $output, $name ) {
if ( 'tracking-info' === $name && function_exists( 'wpshore_wpcf7_before_send_mail' ) ) {
$replaced = wpshore_wpcf7_before_send_mail( array( 'body' => '[tracking-info]' ), null, null );
return $replaced['body'];
}
return $output;
}, 10, 2 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment