Filter query to get cancellation numbers in signups vs cancellations detailed report.
apply_filters( 'pmpro_reports_get_cancellations_sql', $sqlQuery, $period, $levels, $status );
Parameters
- $sqlQuery
- string; The current SQL
- $period
- string; Period for report. today, this month, this year, empty string for all time.
- $levels
- array(int); Level IDs to include in report.
- $status
- array(string) Statuses to include as cancelled.