You would save the Ajax response to the database.
Here are a few tutorials that might be helpful:
Related Posts:
- AJAX handler throws 400 (Bad request) – why?
- ajax live search for post title
- Display a function using AJAX
- Unable to get_the_content(); of a post in WordPress via AJAX
- Ajaxing function in widget class
- woocommerce target button with class after ajax update
- WP Ajax Function Always Returning undefined
- Scripts not appending to element in AJAX call – why?
- How to search using ajax for exact phrase or words in an input field?
- echo custom fields with AJAX
- Are innerHTML elements visible to jQuery functions?
- get content from page through AJAX
- Get URLs for AJAX Filter Checkboxes WordPress
- Populate Product Regular Price with a calculated ACF Field Value
- Ajax Form Issues using Lightsail (AWS)
- post value to function with Ajax and jQuery
- How to use `foreach()` in ajax call
- Multiple Notifications SetInterval
- WordPress Ajaxifying not working properly
- Load scripts into an AJAX div
- Load scripts into an AJAX div
- Automatic add space if user enters number(any digit)
- Ajax call does not work for this custom code
- iOS and ajaxComplete
- Use AJAX in shortcode
- wp_get_attachment_image returns different image size
- Replacing select2 in admin backend for all selects
- Display random text from a file with the WP built-in AJAX API
- Most efficient way to get custom database records from 20 buttons and 20 tables?
- jQuery plugin function is not a function
- What’s the point of using WordPress’s built in admin-ajax.php?
- Enqueuing Script in functions.php vs on the page
- How to load some jquery code to make validation in the theme customizer?
- Move jQuery and Migrate to footer?
- jQuery Plugin to use WordPress functions in AJAX request
- Ajax call theme functions from front
- Woocommerce checkout field maxlength, make input number field only (postcode)
- ‘is’ functions and ‘get_query_var’ not working
- Right way to update widget on dynamic new input field
- How to load jQuery in the footer – nothing works for me
- Function call via ajax – can’t figure it out?
- Not sure if enqueuing js scripts properly
- Allow Post Author to be 0 on Update
- Trouble with adding a wp_enqueue_script on wordpress
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- admin-ajax.php + load-scripts.php hanging for minutes
- how to en-queue jQuery to load before the tag
- I can’t enqueue my scripts – They literally aren’t being added to my site
- How to disable controls in theme customizer?
- Change CSS for logged in users
- Always the Latest google jQuery instead of default WordPress jQuery
- jQuery does not work
- using jQuery on only one page
- Can’t call Javascript function – scope?
- Changing parent element’s class or style
- Adding jQuery datepicker to Custom Post Type Metabox [closed]
- In jquery use php variable to execute an enqueued jquery file
- Run a jquery script on on a certain template page
- Add php code to wp_print_scripts?
- How can i unload effect.min.js file?
- Check if a value exists in database table
- Auto scroll to id on page load on all pages except home page. Only do this on mobile
- How to load jQuery in TOP of wp_footer?
- WordPress can’t get jquery/unslider to work
- Add loggedout class on body using a function or JS
- Include Jquery libraries in wordpress theme?
- Ajax resetting my global variable
- contact form in template with jquery,validate and ajax
- Why a SlideShow (made using JQuery FlexSlider) can’t work if I load it form functions.php but work if I load it from my footer.php file? [closed]
- Execute Jquery when a specific page in my plugin is loading
- Creating multiple category drop down
- How to setup a popup registeration page in wordpress with function.php
- Help with IF has focus then… statment
- Message notification for user
- Woocommerce Variable Product Dropdown for Custom Shop Template
- Detect Ajax call inside pre_get_posts function
- wp_set_object_term via js btn frontend
- Ajax filter with loadmore button
- Hide ‘add to cart’ when certain value in dropdown is selected
- What is the earliest Hook a Script can use?
- WordPress does not load jQuery
- price of product can’t return when get data of product in functions.php
- Update $wpdb query with AJAX
- Images with overlay
- i can’t use wordpress functions in ajax loaded php file
- wp_ajax add_action fuction won’t fire on custom jQuery action
- How do i create a search option for pdf’s only
- True parameter but jquery register in header and not in the footer with wp_register_script
- wordpress function through ajax not being called
- same get_posts function works diffrently in tag.php and functions.php
- Why are some custom javascript files working but some are not
- WordPress Javascript Widget jQuery Dependency Issue
- How to use different jquery function of idangero swiper dependant on page template?
- admin-ajax.php nulls all php variables
- Syntax for a function in order to get post’s title in JSON encoded response [closed]
- How do I get my nav menu to show sub pages?
- Having problems loading Jquery in functions.php
- Why wp_ajax hooks doesn’t work?
- AJAX: WordPress filters inside $html do not work as intended
- How can I json_encode the output of my function?