Using hooks for Contact form

[ad_1]

There is contact form using Block generated using generateBlock on the my page which works exactly as excepted, like it send data back to me when user request it and all .

Now I want to have a contact form just above my footer on some of the page , I don’t know if I can use block for that I tried but couldn’t find a proper way , so as of now I have created a custom form using hooks . Now as the form field are exactly same for the form using blocks and hooks . How I make sure that when I submit the Hooks form same backend the trigger as for block . Do I have to write custom php code for this ? Or can you use the backend for the Block form . If yes how ? Like I can’t find the exact code for contact us form .

I am using generate-press theme .

If only adding custom php is the option, do I need to have any plugin to send email to myself for contact us page or wp mail will do it automatically. i am testing or trying all these in local envious setup using localWp.

[ad_2]
1 Comment

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer