There isn’t much point to distinguishing admin-ajax.php since it’s essentially same file with same logic running for many many purposes.
You are passing action data and hooking into respective action. So action is your identifier. If you are reusing same action and need to further differentiate — just pass more data with your GET/POST request and check for it in your handler.
Related Posts:
- How to allow to user non logged in WP system upload in media library?
- How to set post_id to 0 when you upload image via Add media button. (async-upload.php)
- Load minimum WordPress environment
- admin-ajax.php returns 0. How do I debug it and fix it?
- Add item to media library from blob or dataUrl
- AJAX action not triggering PHP function
- Using wp_handle_upload and media_handle_sideload with ajax
- How to know what page is calling admin-ajax.php?
- Ajax image upload with media_handle_upload and form.js
- wp_handle_upload returns empty error array
- Pass additional parameter with async upload
- How to disable drag-and-drop upload function in Media Library?
- Why is the file not uploading to the server?
- Filter images from media library by guid meta field
- Frontend AJAX Media Upload returning 404
- How to require files in a custom endpoint
- Cannot add multiple single images at once
- How to send custom variable in Media Uploader ajax request?
- wp_enqueue_media problem
- Checking if a file is already in the Media Library
- SSL breaks customizer: page isn’t returned from ajax
- How to verify nonce from Bulk/Quick Edit in save_post?
- How to implement AJAX post navigation into WordPress?
- wp_ajax_[service] returning 0
- Trying to load content of a post via AJAX
- Ajax function returns -1
- Problems with creating sortable sections in customizer
- Is it OK to use a system cron to trigger a function hooked into the AJAX API
- Filter WP user acf field by ajax
- Ajax Request not coming back to class
- How to make ajax content indexable by search engines?
- Change the size of the image preview on the media edit page
- Uploading images: ‘ø’ get replaced with ‘ø’
- Conditional action hooks
- AJAX requests broken due to HTTPS for wp-admin
- Add select field to media uploader that adds a class to the image
- query vars in url work but not in ajax call
- is_home doesn’t affect content
- Is it safe to use $_POST directly in my plugin instead of using admin-ajax.php to receive data from ajax?
- Adding wp_enqueue_media(); causes problem
- How to declare a JS variable in an AJAX call
- is_page() conditional not working inside an AJAX function
- Fatal error: Call to undefined function get_post() with ajax
- how to send Ajax request in wordpress backend
- Upload file type not permitted even if explicitly registered as upload_filetypes in the db (multisite)
- ajax nonce verification failing
- Plugin: AJAX query external API to sync to tables
- admin-ajax.php ” Missing argument 2″ warning
- Update get_pages using ajax on form select change
- I’m using add_meta_box() but want to include TinyMCE editor *and* Media Uploads for each box
- splitting the URL using jQuery
- How do I get reusable blocks via frontend REST API?
- Is there builtin way to use protected AJAX endpoint?
- How to create an ajax endpoint without js?
- Media Library does not show the uploaded image
- Attach Thumbnail Generated from Video Upload as Featured Image for the Video
- Is it possible to split Default WP Media directory to multiple Folder/Subdomain?
- How to load content from many posts on a page, only if needed
- Making an ajax request from a different domain
- WordPress Settings api data not sanitized if i use ajax
- Uploading .mp3 files http error – 2 “exact” files one successful other fails
- Multi Upload In Theme Options
- ajax is returning 0
- wp_editor add media button not working
- Storing WordPress Media Library Uploaded files onto a separate domain
- merge wp rest api query to get posts per category does not work
- zip unzip attachments in wordpress
- WP AJAX post filter > do something with empty value
- How to make a fetch() POST request to wordpress rest api?
- Load more posts in the same category – Ajax + Timber
- How to jQuery Ajax show new data from successful insert?
- Contact form – ajax, wp_mail
- How to change the value “uploaded to” in the media library (WordPress 4.0)
- Replace link with form to pass variables to javascript / ajax
- What if I have a large file on the server that I want the wp library to have?
- AJAX not working when clicking load more button, when two terms are present in tax_query
- AJAX – get_posts for a specific post type returns empty
- Admin Ajax always return 0
- Ajax call undefined index
- Is there a hook that fires after an ajax call?
- Dynamic Twitter card images
- How to pass value from ajax to php in no conflict mode?
- error_log() not working within wp_ajax_{action} handler
- Is there a way to add ajax hooks without editing the functions.php file?
- Implement AJAX to fetch pages or posts content in a WordPress custom theme
- AJAX is not submitting data to database
- about load more ajax
- Deploy Subcategories with Ajax not working
- Allow guest to update custom post met using ajax
- How can I add a Description column to the media library browser screen?
- Load more posts with Ajax and masonry
- Caching for logged in user and Ajax update
- AJAX function needed (toggle text) [closed]
- Retroactively change Permalinks for media files after disabling year/month format
- Call pre_get_posts inside ajax
- Translating wordpress foreach to ajax
- how to update pagination after ajax call page 2 show 0
- How can I add custom sizes for PDF thumbnails generation?
- How to add a “Load more” button for the comment section in WordPress?
- How does the security of admin_ajax.php work?