Closed k1sul1 closed 7 years ago
You can use wplf_email_copy_to
and in function that gets driven just $_POST['_form_id']
to determine if we're in some form that needs to be handled differently.
Maybe a own filter for every form would be more clear, but then you can't use dynamic options to select forms where some action needs to run. It can become a problem in some use cases.
I agree. ID within filter seems like it's a pretty standard way of doing stuff. I like having both options. @k1sul1 can you implement ? :)
Yeah I'm a bit busy at the moment, but I can look into it in the near future.
Just make sure you get paid for your libre forms work :)
There's no way to set actions or filters on invidual forms.
Easily solvable though:
apply_filters( 'wplf_email_copy_to', $to )
=>