I have used some different codes in the function.php following some of your tutorials and helps, but I would like to optimize them, I show you an example:
I use this code to check the email field of my form in another email field:
But I have to clone this same code 7 times because I have 7 forms, ¿How can I optimize this code for 7 different forms using the same function (adding the field number in the same code)?