Notifications
SwitchGuard Pro provides two notification channels: per-switch email alerts and a weekly activity digest.
Email Notifications
Navigate to SwitchGuard → Settings → Notifications → Email.
| Setting | Default | Description |
|---|---|---|
| Enable Email Notifications | No | Send an email on each switch event |
| Notification Address | (admin email) | Recipient email address |
Notification emails include:
- Event type (switch to / switch back)
- Switcher name and email
- Target user name and email
- IP address
- Timestamp
Weekly Digest
Navigate to SwitchGuard → Settings → Notifications → Weekly Digest.
| Setting | Default | Description |
|---|---|---|
| Enable Weekly Digest | No | Send a weekly summary email |
| Digest Address | (admin email) | Recipient email address |
The digest is sent every Monday at 08:00 (WordPress timezone) via the switchguard_weekly_digest cron event. It includes:
- Total switch events in the past 7 days
- Top 5 most-switched-to users
- Top 5 switchers by activity
- Any locked users that switch attempts targeted
If wp-cron is disabled and no server cron runs wp cron event run, the digest will not send. Check with WP Crontrol that switchguard_weekly_digest is scheduled.