Learndash_Admin_Data_Reports_Quizzes::process_report_action( array $data = array() )
Handles the AJAX export request.
Description #
Builds the users list, writes CSV headers, queues the first background chunk via Action Scheduler, and returns a queued-state snapshot. Subsequent rounds are no longer driven by the browser — Action Scheduler chains chunks server-side via process_export_chunk(), and progress (plus the final download link) surfaces through admin notices. A request received while an export is already running short-circuits to a running-state snapshot.
Parameters #
- $data
-
(array) (Optional) Post data from AJAX call.
Default value: array()
Return #
(array) Response payload describing the queued export.
Source #
File: includes/admin/classes-data-reports-actions/class-learndash-admin-data-reports-user-quizzes.php
Changelog #
| Version | Description |
|---|---|
| 5.1.6 | Iteration moved to Action Scheduler; this method only queues the export now. |
| 2.3.0 | Introduced. |