1.0.11 min read
AJAX Endpoints
Reference the authenticated admin AJAX actions used by the bulk queue.
Vacuum registers AJAX actions for authenticated admin queue operations.
Queue actions
| Action | Purpose |
|---|---|
wp_ajax_vacimg_scan_library | Scan attachments and prepare jobs. |
wp_ajax_vacimg_start_queue | Start processing. |
wp_ajax_vacimg_pause_queue | Pause processing. |
wp_ajax_vacimg_resume_queue | Resume processing. |
wp_ajax_vacimg_process_batch | Process one batch. |
wp_ajax_vacimg_queue_status | Return current queue status. |
wp_ajax_vacimg_retry_queue_job | Retry a failed job. |
Admin-post actions
The setup wizard uses admin_post_vacimg_save_wizard and admin_post_vacimg_skip_wizard. Report export uses an authenticated admin-post action.
Security expectations
Endpoints should be used only from WordPress admin screens. They rely on capability checks, nonces, sanitized input, and escaped output.
Related articles
Bulk OptimizeScan the Media Library and process eligible images through the safe batch queue.Queue SystemReview scan, enqueue, process, retry, state, batch size, and failure handling in the queue.SecurityReview capability checks, nonces, sanitization, escaping, file safety, and no external API design.