• Hi I have followed the steps for making a custom form-tag (https://contactform7.com/2015/01/10/adding-a-custom-form-tag/) by adding the code in my child-themes functions.php

    When I put the tag [clock] in the message body in contact form 7 it prints the time.
    But when I put it in e-mail body in contact form 7 it just get printed as [clock]

    I have tried to ad a name to the shortcode [clock your-clock] and then put [your-clock] in the e-mail body, but that just prints [your-clock] in the e-mail.

    Im using wp 5.4.4 (can’t upgrade at the moment) and cf7 5.3.2

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Thread Starter kim.oj

    (@kimoj)

    Hi Takayuki
    Thank you for your response!
    I tested the code in the link and it works in e-mails as it should ??

    My problem now is that I want clock present in the mail to.

    What I can see I need to adjust the function custom_clock_form_tag_handler( $tag ) but I can’t figure out exactly how. Because in the datalist function you use an input and I only want to present som data, like in the clock function.

    Thank you for taking your time with this!
    Kind regards Kim

    • This reply was modified 3 years, 3 months ago by kim.oj.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘custom form-tag not working in e-mail’ is closed to new replies.