This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Email Logger | |
| * Description: Logs all emails sent from WordPress (works for single site and multisite) | |
| * Network: true | |
| */ | |
| add_filter('wp_mail', 'universal_log_wp_mail', 999); | |
| function universal_log_wp_mail($args) { | |
| $is_multisite = is_multisite(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Network Email Logger | |
| * Description: Logs all emails sent across the network | |
| * Network: true | |
| */ | |
| add_filter('wp_mail', 'network_log_wp_mail', 999); | |
| function network_log_wp_mail($args) { | |
| // Store in network option (available across all sites) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Plugin Name: Email Logger | |
| * Description: Logs all emails sent from WordPress | |
| */ | |
| add_filter('wp_mail', 'log_wp_mail', 999); | |
| function log_wp_mail($args) { | |
| // Store in regular option (single site) | |
| $emails = get_option('emails_log', array()); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "meta": { | |
| "lastTouchedVersion": "2026.1.24-3", | |
| "lastTouchedAt": "2026-01-27T08:29:37.155Z" | |
| }, | |
| "wizard": { | |
| "lastRunAt": "2026-01-27T08:29:37.152Z", | |
| "lastRunVersion": "2026.1.24-3", | |
| "lastRunCommand": "onboard", | |
| "lastRunMode": "local" |