Browse: Home / Classes / Learndash_Admin_Data_Reports_Quizzes /

Learndash_Admin_Data_Reports_Quizzes::process_export_chunk

Learndash_Admin_Data_Reports_Quizzes::process_export_chunk( string $transient_key )

Processes one chunk of users for the in-progress quiz export.


Description #

Invoked by the Action Scheduler dispatcher in Learndash_Admin_Background_Export::handle_export_chunk_task(). Loads the export state from the transient, processes a single chunk of users in one batched activity query, appends the resulting rows to the CSV, and persists the remaining work back into the transient. Returns whether more chunks remain so the dispatcher knows whether to chain another scheduled action.


Parameters #

$transient_key

(string) (Required) Transient key holding the export state.


Return #

(bool) True when more users remain to process; false when the export is done.


Source #

File: includes/admin/classes-data-reports-actions/class-learndash-admin-data-reports-user-quizzes.php


Changelog #

Changelog
Version Description
5.1.6 Introduced.