Answer the question
In order to leave comments, you need to log in
How to implement automatic sending of a promotional code in the application form?
Hello! Dear ladies and gentlemen, tell me how to implement automatic sending of a promotional code on the Wordpress website when filling out the feedback form. Thanks in advance
Answer the question
In order to leave comments, you need to log in
Hello!
You provided little information... For example, what is a promo code and how is it generated. Is it generated automatically or is it a Woocommerce promo code. Next, what plugin are you using to submit the feedback form? CF7 for example...
I would do it like this... install the ACF plugin and learn acf_form() https://www.advancedcustomfields.com/resources/usi...
Then send a message with wp_mail()
https:/ /wp-kama.ru/function/wp_mail
And then in the body of the function, where there is a form submission, you can generate a promo code, write it to a variable and include letters in the body.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question