• Good Morning to you all,

    i would like to dinamically add to my enquired Contact Form 7’s mails the product name.

    Example of the mail send to me:
    From: [your-name] <[your-email]>
    Object: [your-subject]
    
    Corpo del messaggio:
    [your-message]
    
    -- 
    This e-mail was send to request information about: [product_name]

    But the short code clearly doesn’t work, and i already tested it elsewhere and it works.

    shortcode:

    
    function displayProductName($item) {
        $productName = get_the_title($item['id']);
        return $productName;
    }
    add_shortcode('product_name', 'displayProductName');

    Thanks to everyone who would like to give me support.

    • This topic was modified 4 years, 4 months ago by formapp2021.

The topic ‘Contact Form 7 Dinamically add Product name to Mail Subject’ is closed to new replies.