apply_filters( 'learndash_report_activity_list_view_chunk_size', int $chunk_size )
Filters the chunk size used when intersecting the Reports list view’s user set against the user activity table (group-leader and regular-user role-scoped paths only).
Description #
Distinct from learndash_report_user_activity_export_chunk_size, which controls the per-chunk size of the background CSV export pipeline. This one only affects the list-view intersection query that decides which users have any activity to display.
Prevents oversized IN(…) clauses from exceeding MySQL’s max_allowed_packet on sites with very large user bases.
Parameters #
- $chunk_size
-
(int) Number of user IDs per chunk. Default 500.
Return #
(int) Number of user IDs per chunk.
Source #
File: includes/reports/includes/class-ld-propanel-activity.php
Changelog #
| Version | Description |
|---|---|
| 5.1.6 | Introduced. |