I am currently trying to dynamically add CC email addresses to an Elementor form through the WordPress functions.php file, but I can’t seem to figure it out how. My client wants me to only add the CC email addresses when a specific value from a drop down / select field is selected. Not for the whole form.
I am able to program the logic when it should add the CC email addresses, but I can’t figure out which Elementor Hook I should use and how to instruct it to add the CC emails. Any help is greatly appreciated.
At the moment I don’t have a code example of what I tried because nothing really worked. I am still in the process of trying to figure out if it can even be done and if yes, how I will need to go about it.