Shortcode in mail
-
Trying to be able to use this car look up function to display in a form which can be sent via email. If you go to : https://www.engine-repair.co.uk/ type in a reg number and fill in the form, I would like those details to also show in the email but it is currently just showing the shorcode
Make: [ukvd_getbasicitem dataitem='make'] Model: [ukvd_getbasicitem dataitem='model'] Year: [ukvd_getbasicitem dataitem='year'] Colour: [ukvd_getbasicitem dataitem='colour'] <label> Your Name (required) [text* your-name] </label> <label> Your Email (required) [email* your-email] </label> <label> Subject [text your-subject] </label> <label> Your Message [textarea your-message] </label> [submit "Send"]
Function trying in function.php
function addUkvdMailTags( $output, $name, $html ) { if ( ‘ukvd_getbasicitem_make‘ == $name ) $output = do_shortcode( "[ukvd_getbasicitem dataitem='make']" ); return $output; } add_filter( 'wpcf7_special_mail_tags', 'addUkvdMailTags' , 10, 3 );
Any help is much appreciated, thank you.
The page I need help with: [log in to see the link]
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Shortcode in mail’ is closed to new replies.