I tried to shorten that title as much as I could, but basically this article will explain, at a high level, how to update an Advanced Custom Field (ACF) in your WordPress theme by submitting a form through an AJAX request.
Why an ACF? Well, it doesn’t have to be for that. It’s only an example I’m using to demonstrate how data or inputs can be moved from a user form to the back end. Once you obtain the data in this way, you can do whatever you want with it.
Why through AJAX? This is the best part – it all happens without the browser having to refresh the page. (It’s done asynchronously.) Take a look at the diagram below and follow along with me.