PHP Concatenation not working with
-
Hi Ewout!
First of all, congratulations for your great plugin, a gret work!I am facing, what I guess is an easy issue. I am not being able to get a string from the function: $wpo_wcpdf->get_custom_field( ‘inscription_textbox2’)
My code is:
function mycustom_headers_filter_function( $headers, $email ) {
global $wpo_wcpdf;$email_address_to_send = $wpo_wcpdf->get_custom_field( ‘inscription_textbox2’);
$headers .= ‘BCC: ‘ . $email_address_to_send . “\r\n”;
return $headers;
}The problem is that apparently the email string that comes from the textbox called ‘inscription_textbox2’ is not being concatenated in the headers variable …
I am sure that the email is being filled in the ‘inscription_textbox2’ text field since it is being correctly showed in the pdf.
Do you have any idea about how to solve it?
Thanks a lot in advance!
Angel.
- The topic ‘PHP Concatenation not working with’ is closed to new replies.