Support » Plugin: Contact Form 7 » How to write php code on Contact Form 7

  • Resolved Lucas

    (@lucasdias097)


    Hi,

    I let to know how can i write php code on contact form 7

    I need put this code:

    function createProtocol() {
    date_default_timezone_set(‘America/Sao_Paulo’);
    $data = date(“dmYHis”);
    return $data;
    }
    $protocolo = createProtocol();

    and submit this result on sending email.

    Like:

    Protocolo <?php $protocolo ?>
    Name: [your-name]

    • This topic was modified 2 years, 6 months ago by Lucas.
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘How to write php code on Contact Form 7’ is closed to new replies.