You might find this informative, not sure if it will cover what you need but it explains a lot about front end Ajax for WordPress which is not exactly intuitive and it might help you out. In particular you probably need to understand how admin-ajax.php works.
Related Posts:
- Does the functions.php file ever get called during an AJAX call? Debug AJAX
- How bad is it if I write AJAX functions using wp-load.php?
- redirect does not work in ajax function
- Add a preview to a WordPress Control Panel
- Changing the entire control choices using wp.customize with JavaScript
- Can’t access WordPress functions in file called via Ajax?
- How WordPress converts URL to $query_string
- How to Globally Use wp_localize_script() Ajax URL
- trying to use wp_handle_upload with ajax
- Using AJAX in wordpress theme
- Using an if statement in the theme customizer page
- Retrieve localised value
- AJAXIFY WordPress Theme Frontend menu
- Post thumbnail to append post content via ajax click event
- Would to use AJAX to get an option from the database and use it in a jquery setup or is there an alternative to consider?
- ajax response -1 in wordpress theme
- Why does admin-ajax load slow and what are ways to speed it up?
- Why WordPress AJAX returns undefined however it works fine when I add static url instead of dynamic function?
- How to use ajax in wordpress and sending the data without refreshing ?
- Issue on Accessing To Ajax Enqeued File to Pass to URL for Ajax Call
- pass wordpress template directory into ajax url call
- Ajax call returns 0 when add_action is inside a class in functions.php
- Retrieve WordPress’ the_content() with jQuery
- AJAX call fails when sending JSON but works with URL style string
- Pagination don’t work with active filters
- Woocommerce AJAX filters option loading spiner – problem on mobile device
- how use ajax to custom page template
- How to properly use AWS SES for a contact form?
- WordPress Insert ads after every 5th post
- Why excerpt hook not working inside ajax function?
- Theme functions don’t work as expected in partial included via get_template_part() after custom query using Ajax [duplicate]
- How to load jQuery with Ajax in WP version 5.3.2?
- Ajax Comment Upvotes – Votes don’t always register
- use a single nonce in three different nonce field
- Infinite scroll without plugin using ajax
- my ajax wont sent the data, please correct my code
- wp_kses allow checkbox class and checked
- WordPress Ajax Spitting out a page as a response?
- Using Customizer value in an external PHP file inside a theme
- How to avoid Ajax in wordpress theme in making mulitple request?
- Which function(s) to build a paged HTML table
- Making update notification functionality for my themes
- Should `get_template_directory_uri()` be escaped?
- How to disable 3.1 “Admin Bar” via script for the admin user?
- Where do I find the functions triggered within a hook?
- How to Change CSS Variable value in Theme Customizer Live Preview
- index.php is not loaded for single posts
- Easy WordPress theme creation tutorial? [closed]
- How do I add a post to a menu
- how to implement wp_is_mobile on themes?
- Where is definied the theme location for the main menu in a WordPress template?
- How to disable automatic colors in the Twenty Twenty theme?
- Check if user has enrolled in Sensei LMS Course on Lesson Page
- How to handle custom form submission?
- menu behavior is not as expected
- My custom theme does not load the translations
- Child theme style.css versioning
- Disable front-page.php template
- Gutenberg – editor-font-sizes in functions not working
- Same ACF on two different pages
- How to use get_template_part instead of include_once?
- How to remove comment link title attribute?
- Custom Field returning Numerical Value for Image rather than URL
- Should we use ob_start() in WordPress short code
- Default string not appearing want to translate
- How to make a local cache of mshots images
- Using a page as home, how do I prevent nav from setting both home and page links active?
- How can I ping update-core.php with a script?
- Child Theme’s style.css not loading in mobile browser
- Broken theme, template is missing
- WordPress page/blog incorporated into static website
- Theme Development -> Specific Homepage
- Premium theme licensing of php called through AJAX
- Javascript development in Custom Themes
- Custom jquery not code not working in wordpress
- Customize Option Framework
- Under theme folder, what’s sequence of action for index.php, page.php, single.php?
- Register a custom post type as public = false, but have content appear in search engines?
- Theme author.php transfer
- Array for WordPress Avatar Size and Class
- Submit remote form to wordpress REST API and save data to custom post type
- How to display only author’s name for the current post?
- How can I include custom Gutenberg Blocks in a theme?
- WordPress displaying two different headers, one at top and one below footer
- How to show metabox on page if it is using a template
- Mix it up & WordPress
- two col layout bootstrap 4 with one fixed col and fade in effect on image
- Styling the website via the customizer – do the changes stay after theme update?
- How to submit a guest post with rich text editor?
- Theme Development : License help
- show posts in different styling
- How to throw the “We need ftp info” at a user
- Infinite scroll loads new posts several times
- How to reduce repetitive code
- Add the ability of changing background color of a theme [closed]
- How to use esc_attr__() function properly to translate a variable that contains string?
- What to do when child theme is out of date with parent theme
- Query for tag given slug
- Image Size wrong during upload
- My theme is full of error messages in the “Customize” screen, but nowhere else