Getting CF7 mail["body"] with variables [lastname] replaced
-
I’m writing a function where I need the email that will be sent out after the cf7 variables have been replaced. I’m hooking into ‘wpcf7_before_send_mail’ and I’m able to grab $cf7->mail[“body”] successfully but the cf7 variables like [lastname] (I have a field [text* lastname] in the form) aren’t replaced yet. Is there a cf7 function I can call with $cf7->mail[“body”] to replace those variables so I have the actual translated email with all the variables replaced?
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Getting CF7 mail["body"] with variables [lastname] replaced’ is closed to new replies.