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
- Access-Control-Allow-Origin error sending a jQuery Post to Google API’s
- JavaScript implementation of Gzip
- How to Protect Uploads, if User is not Logged In?
- WordPress AJAX with Axios
- How to wp_upload_bits() to a sub-folder?
- What might cause a POST to wp-admin/async-upload.php to return JSON >and< HTML?
- Is it possible to trigger some JavaScript when Media Popup is opened?
- Admin Notification after save_post, when ajax saving in gutenberg
- Initialize JS with an ajax loaded ACF form
- WordPress Nonce Issue for Ajax Login and Logout
- How to modify wp_ajax function?
- Vue.js + AJAX Shortcode
- Turn jQuery.ajax() request into XMLHttpRequest (vanilla JavaScript)
- wp_remote_get() to get AJAX url /wp-admin/admin-ajax.php
- wp_ajax action is not running
- Ajax – gettext without a plugin
- Adding File Extensions to Attachment Page Permalinks
- How do I set the url to make an ajax request for a html document?
- How to import 55k images (uploaded via FTP) into WordPress Media libary? [closed]
- AJAX image upload with a upload progress bar using media_handle_upload
- Media_handle_upload with custom upload folder?
- wp-admin AJAX with Fetch API is done without user
- Ajax stops working when logged in?
- WordPress ajax get content post id
- Populating content dynamically via AJAX and Advanced Custom Fields [closed]
- How do I get allowed Media Library upload file extension list?
- Create Page With wp_insert_post() and AJAX
- How to order images in a post in WordPress 3.3?
- Get wp_title wp ajax
- Allow only attachment uploaded to current post
- Ajax custom search not functioning as expected
- Control attachments menu order with jQuery Sortable
- Speed/Performance difference between `wp_ajax` and `init` checks for AJAX/POST requests?
- How to handle 400 status in Ajax [duplicate]
- Remove trailing 0 from function that is used both statically and dynamically
- How to load next and previous posts by Ajax
- WordPress media uploader – upload tabs not hiding
- WordPress ajax works on FF but not on IE & chrome
- Disallow second login session
- Upload multiple images and insert them into custom html code
- Uploaded images not displaying in network site
- POST Ajax bad request
- Too slow Image upload in WordPress Media Library as image number increases
- How to limit the number of images displayed in the media window?
- How to upload media to specific year/month folder
- PHP error when trying to upload .mp3 files via Media Library [closed]
- Ajax for subscibers not working
- 200 return code on ‘POST /wp-admin/admin-ajax.php’ while NOT logged in
- Open Media Uploader Link in single post or page
- i’m trying to get all my media query attachments via ajax in wordpress
- Use AJAX in a WordPress Plugin to Get Data From Custom Database?
- Custom RPC end-point security best pratice?
- AJAX – SHORTINIT set to TRUE returns blank
- Ajax mousedown call getting “cancelled” when clicking link
- Get uploaded attachment width & height and attachment ID after upload them
- Refresh checkout fields on add to cart with order bump
- Add Server Side validation in Ajax mail form
- Is it good practice to use REST API in wp-admin plugin page? [closed]
- Ajax not sending the data correctly- Multidimensional array
- Replicate Media Galley Edit view in Add Media View
- Handle image file and save it to media
- How to check Ajax request only when i opened the Notifications list?
- All WordPress AJAX calls always return 0
- how to get password from user instead wp-generate-password
- Image paths wrong after migrating with wp-migrate-db-pro media files add-on
- Class called in template, AJAX not registering
- Altered Media Library URLs
- Same query in category.php and in function.php, but different result
- How to use nonces for frontend AJAX voting if the page gets cached?
- 403 (Forbidden) delete file image in themer folder
- Ajax request to admin-ajax.php and window.location.href
- Media Library not showing images when adding to Posts (but retrieving image info via ajax)
- Objects and get_post_meta() gives me 1 string for latitude and longitude
- WordPress ajax requst returns zero
- wp_editor() in content that was loaded with ajax [duplicate]
- WordPress blocking polling request when signed into Admin
- Facebook Pixel + WooCommerce + AJAX = Confusion
- Send button using own contact form [closed]
- How to get data with Select AJAX PHP
- Many images in wp-content/uploads folder that are not in Media Library
- Bad Request 400… jQuery ajax post of json data to wordpress admin-ajax.php