Documentation Index
Fetch the complete documentation index at: https://docs.mainwp.com/llms.txt
Use this file to discover all available pages before exploring further.
What you’ll learn
- How Pro Reports handles suspended child sites in scheduled reports
- How to override the default skip behavior with a filter
- When to keep suspended sites included in a report
Extension Add-on - This add-on provides standalone functionality within MainWP Dashboard. No third-party plugins required.
Default behavior
For each scheduled report:- Pro Reports loads the sites assigned to the report (directly, by group, or by client).
- Any site whose status is Suspended is removed from the report run.
- A log entry is written for each skipped site, for example:
Skipping suspended site :: https://example.com. - The report is generated and emailed only for the remaining active sites.
Override with the filter
Use themainwp_pro_reports_skip_suspended_site filter when you need to keep suspended sites in a report (for example, to still send a final summary, or to make the decision conditional on the report or site).
Filter signature
| Argument | Type | Description |
|---|---|---|
$skip | bool | true if the site is suspended and would be skipped. Return false to include it. |
$value | object|array | The site row from the database. Includes the site url and suspended flag. |
$report | object | The Pro Report being processed. |
false to include the suspended site, or true to skip it.
Example: include suspended sites for a specific report
This snippet keeps suspended sites in any report whose title contains “Final”:Example: never skip suspended sites
If you want to revert to the previous behavior and always include every assigned site:functions.php or to a PHP snippet using the Code Snippets extension.
Related Resources
- Pro Reports Extension - Main Pro Reports documentation
- Suspend or Unsuspend a Child Site - Manage suspended sites
- How to send a missed recurring Pro Report - Resend missed reports
