If the url is something like this admin-ajax.php?example_ajax_request=1&data=1234
The add_action function in the code would be wp_ajax_nopriv_example_ajax_request
So, try to grep the whole of your theme directory or plugin directory for the text.
Example: grep -r 'wp_ajax_nopriv_example_ajax_request' *
The second parameter of the add_action is the function name you’re looking for.
See https://codex.wordpress.org/AJAX_in_Plugins#Ajax_on_the_Viewer-Facing_Side for example of how it works.
Related Posts:
- Click loads template via ajax
- How to speed up admin-ajax.php in wordpress
- dynamic dependent select dropdown
- Why i can’t get custom fields value or post ID via Ajax?
- Update $wpdb query with AJAX
- How to call a function from functions.php with ajax?
- I got this error POST https://localhost/meraboilerwp/[object%20Object] 404 (Not Found)
- WordPress Ajax always returns a 404 error
- How to use WordPress (PHP) functions in AngularJS partials files?
- Display notification only once
- Access/update database with jQuery
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
- Sending jsPDF documents to the server
- Ajax return code 400
- How to test nonce with AJAX – Plugin development
- class click counter save number
- AJAX request status 200 but no actual “response”
- Ajax request not sending to server and returning – wp-admin/admin-ajax.php 400
- Save Search System
- Ajax load more button for comments wordpress
- How to add a do_action on refreshing of WP customizer?
- Setting value of session with Ajax not working
- How to add a Custom Mailchimp AJAX Newsletter Subscribe Form
- Fancybox type popup window that’s not an iframe
- How to disable controls in theme customizer?
- How do I Import / Upload Files with jQuery AJAX?
- WordPress Ajax Call inserting data but success response false
- Function won’t run onclick using Ajax
- Accessing an API with jQuery and AJAX
- Execute Jquery when a specific page in my plugin is loading
- Change Query Arguments (filter) with jQuery/Ajax or PHP?
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Tracking Visitor LatLng with WordPress using JS, PHP. How to put data which was extract using JS into DB
- Database entry removed on browser refresh, Ajax PHP jQuery
- Ajax filter with loadmore button
- Admin-ajax.php 404 error
- How to pass values from one function to the other using an array variable
- How to use wp_ajax_set_post_thumbnail?
- AJAX to add to cart multiple products woocommerce
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- How to echo a PHP code into WooCommerce variation product?
- How can i get the same ajax result using WP REST API instead of admin-ajax?
- Custom Post type Ajax search results
- WordPress load javascript file if something… (after the page is loaded)
- number of posts with “Load More”
- Why I’m Not Having Access to “$_POST” Data Outside My AJAX Callback?
- 500 (Internal Server Error) of external php file
- Dynamic Gallery
- ajax form function error
- AJAX: WordPress filters inside $html do not work as intended
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- How to hide .js files on wordpress website using php or wp plugins or any? [closed]
- notify users when changed database
- Retrieve POST data from AJAX call
- WordPress Infinite Scroll without using any plugin
- problem with ajax and the path to the php page
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- Audio Player not loading when the content is loaded through Ajax, MediaElement.js no applied
- Targeting single page with JS
- How to retrieve the content (with a specific ID) via ajax by clicking a link tag
- js file in root loading without
- WooCommerce – Reset quantity input field when variation changes
- Checking for new message using AJAX and PHP. Server overload?
- jQuery not defined
- Use menu link or onClick to set a variable
- Scripts not appending to element in AJAX call – why?
- Pass Category Name, Description and Photo into variables to pass to jQuery
- Change “add to cart” button color based on Woocommerce product category [closed]
- Ajax request returns ‘Array’. How to output the actual results?
- Show success or error messages in Ajax response to WordPress custom registration form
- Pull GetOption() variable into jQuery dynamically created html
- Error – ‘create_function is deprecated’ [closed]
- Load Posts on Click via Ajax into a DIV
- How to get specific string/value from an array? php [closed]
- Ajax search shows all results when user empties input?
- Get uploaded image and attach it to the new post
- Cannot access $wpdb, comes back NULL
- Admin-ajax php not working on new wordpress version
- How to reference PHP in Javascript
- Add a counter for mouseovers (custom field)
- How to set variables with AJAX request to use in another function in WordPress
- Store ajax data in PHP variable
- Cannot find the php_ini configuration file to find my error log to see why my code is not working
- Add other class content with reference class value
- Ajax result show in console if is called outside function and not showing in array
- wp_ajax_ 400 Bad Request
- update_post_meta Not Processing Array Data (Not Sure What I Am Missing)
- WordPress Ajax filter: Create two loops for different output styles?
- Need help with AJAX login to call php in functions.php to handle redirects based on user cap (role)
- Retrieve $_POST data to send to javascript without using localize script
- Add a downloaded JS file to WordPress
- How to call javascript function (jquery) in a shortcode?
- How to run ajax in WordPress Post?
- Add php function into .js file (for tinyMCE button)
- ajax problems on loading page [closed]
- iOS and ajaxComplete
- Start a long running PHP process via JS/Ajax and monitor progress on admin page
- custom AJAX filtering logic and outputting results into an Elementor Loop Grid widget
- JQuery UI Autocomplete showing as bullets