You can simply target to a custom file when using wp_localize_script(). Just – in the third argument-array – set ajax_url to whatever file you want to target.
Related Posts:
- A tool to analyze rewrite rules? [closed]
- ajaxurl not defined on front end
- Why does WordPress add 0 (zero) to an Ajax response?
- Saving data-URI to media library
- How can I run AJAX on a button click event?
- What is nonce and how to use it with Ajax in WordPress? [duplicate]
- Empty POST data on server on AJAX request using Angular $http
- How to Rewrite WordPress URL for a Plugin
- Build path for a custom portfolio plugin
- Using AJAX in a plugin to submit form – REALLY confused
- wp_localize_script $handle
- Custom Rewriting to Plugin with Parameters
- Add rewrite rule in plugin: with .htaccess in plugin folder or using WordPress functions
- Removing rules from .htaccess
- Mapping multiple URLs to same page
- How to enable users to down-vote in this simple voting counter (that uses the post meta)?
- How to post form in ajax mode and handle it in wordpress
- Rewrite Point Doesn’t Work on Custom Taxonomy
- Using Ajax call in jQuery doesn’t work in widget
- Rewrite url for existing page without flush_rewrite_rules
- WP_LOCALIZE_SCRIPT doesn’t work
- Timeout on Admin-Ajax?
- Comment `Reply` link doesn’t work if comments are loaded from ajax
- URL rewriting must be activated manually for my plugin
- Ajax in WordPress – path issue
- Cannot search post by taxonomy
- WP AJAX is not working, always returns 0
- Why doesn’t flush_rewrite_rules run on plugin activation?
- include wp-blog-header not working on MAMP
- Slow WP_query due to nested wp_query. Need Suggestions
- How can I pass get_the_author_meta(‘user_email’) through the REST API?
- Woocommerce checkout update totals with datepicker
- Including the necessary functions for a custom ajax registration form
- Dashboard – get status and position of metaboxes and pass them to ajax method
- rewrite URL based on selected taxonomy for post page
- Storing data in wordpress database from ajax call from different website
- Create custom HTML/JS app inside page
- Possible to get all posts with my shortcode?
- add_rewrite_rule behaving strangely
- how to get context information inside my funcion
- AJAX form post returns 0
- Bad Request in AJAX
- Remove entire [$key] from array stored in custom field using Ajax – unset($array[$key]); not working
- Ajax submit result opens in admin-ajax.php
- insert query on a custom table using ajax with jQuery plugin Jeditable
- Plugin AJAX Save to Custom Table
- Setting a JSON web token from a secondary api as a secure cookie on WordPress
- How do I get rid of my inclusion race-condition on wp_enqueue_script
- AJAX call to admin-ajax.php by subscriber returns home page
- Ajax function is not working on WordPress
- Best practice for plugin: always detect admin-ajax call?
- Why is the form not updating when I select a new sector from the list?
- configuration of .htaccess for add_rewrite_rule to make sense
- Plugin Form Submitting to admin-ajax.php instead of admin-post.php
- Forward an old url rewrite scheme to a new one?
- AJAX request not routing through proxy
- Custom Path for a Plugin
- Get cat parameter from admin-ajax
- Ajax on the Administration Side of plugin – returns 0
- Custom post type change permalink query
- GET request return value as error instead of success
- How to control ajax calls without effecting memory of server?
- Forbidden Error in ajax call with wordpress
- “add to cart” links css class “ajax_add_to_cart” doesn’t show in woocommerce in widget sidebar
- ajax stopped working when not logged in wordpress
- ajax call return 406 not acceptable for non logged users only
- Does $this context change in an AJAX callback?
- Disabling Yoast, All-in-One, and Rank Math on Certain Pages within a Plugin
- ajax response strips multidimensional array and unable to decode
- WordPress Ajax not returning Response
- WordPress custom url without using any of the custom tags given
- Using AJAX to submit and return data inside the WordPress Plugin Boiler Plate framework
- Inserted data from database does not showing on front-page without referesh page?
- wp_ajax function return the html page
- $_SESSION inside php function executed by AJAX
- Two same AJAX calls – one is working, other doesn’t
- Using meta_key & meta_value in add_rewrite_rule
- How to get values from Tinymce visual editor popup?
- How To do Ajax In WordPress Custom Plugin?
- How to force download a plugin generated file?
- How to pass a more variable with page/subpage in Wordprees URL?
- Ajax call not working with
- WP Ajax on page load not working on bluehost but was working on Godaddy
- Ajax not working to insert, query and result data
- Any way to make Apache’s internal redirect work?
- How can I send an id over the url?
- Can’t get query string in ajax call
- Custom slug in url for CPT and taxonomy
- Mapping multiple URLs to same page
- Use custom clean URLs for a plug in
- Ajax url value to pass ‘variable’ to use in query
- How to Rewrite WordPress URL for a Plugin
- Virtual Page with Registration form
- An adiitional function fires on my AJAX submit
- How to use permalink query to go to specific tabs in posts
- Fatal error: Call to a member function query() on a non-object in my ajaxpage
- redirect word-press page with page values
- Trigger a JavaScript function based on the data fetched from Woo commerce hook
- Why my admin-ajax url returns 0 even after adding echo and die() at the end of function?
- WordPress plugin boilerplate AJAX functionality