Рет қаралды 20,725
Build your own custom contact form in WordPress.
There are plenty of plugins for contact forms in WordPress, and sometimes it's easiest to use them. However, you can also create your own custom forms in your WordPress theme (without a plugin).
In this video, we'll learn about how WordPress works with AJAX requests. It is possible to use WordPress' 'ajax-admin.php' endpoint to make AJAX post requests to do many things, include sending a form.
When you make a post request to admin-ajax.php, you need to specify an action in your data so WordPress knows which function to target when the post is made, you can then action what ever you want to do with that post data through a function in functions.php