Skip to content

Documentation / Store Reports

Schedules and files

Last updated

Schedules generate the same exports on a timer so you do not have to click Run each time.

How scheduling works

Jobs use Action Scheduler. Cron hooks include jwp_stk_sr_process_schedules and jwp_stk_sr_run_single_schedule. Schedule rows live in {prefix}jwp_stk_schedules; generated files in {prefix}jwp_stk_report_files plus disk files under uploads/jwp-stk-jobs/.

Retention

report_retention_days defaults to 7. Daily cleanup (jwp_stk_cleanup_store_reports) deletes expired files. When a job row is removed, jwp_stk_job_before_delete lets the module drop related files.

Share links

A job can mint a share token. GET /wp-json/jwp-stk/v1/store-reports/share/{token} is public (no login) so you can hand a download link to someone without a wp-admin account. Treat those URLs like secrets and rotate them if a file should no longer be public.

If jobs sit in Pending, check WooCommerce → Status → Scheduled Actions and hosting cron.

Back to Store Reports.