In wordpress’s function.php the functions are written to check validate fields, return errors and if no errors, send email.
so in separate page template, it has <form action="" method="post"> so how to call functions from function.php?
Is it <form action="form-progress()" method="post"> ?
Any guide or insight will be appreciated.
Well actually what you can do is this:
this way, when your user clicks submit, it will enter the else part and check the form.
If you want to verify required fields or something:
I hope this is what you were asking!