advancedforms / advanced-forms

WordPress plugin to create forms using Advanced Custom Fields
75 stars 14 forks source link

af_register_email action #52

Closed ajuliano closed 5 years ago

ajuliano commented 5 years ago

I want to add email programmatically, just like it's possible to do with af_register_form. But I can't find a similar simple way to do it. For now I use af/form/submission and wpmail(). But is there a way to do it with any af filter/action?

Thanks!

fabianlindfors commented 5 years ago

Hi!

My plugin has a built-in export-to-code function which lets you generate PHP code for registering a form you've set up in the admin interface. I would create the form through the WordPress admin with email notifications and then use the export functionality to generate the registration code. When editing a form there should be an "Export" button on the right side of the page!

Hope this helps!