Skip to content

Instantly share code, notes, and snippets.

View ozgursar's full-sized avatar

Ozgur Sar ozgursar

View GitHub Profile
@ozgursar
ozgursar / wp-email-logger.php
Created February 11, 2026 12:30
WordPress Email Logger (works for single site and multisite)
<?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();
@ozgursar
ozgursar / email-logger-multisite.php
Created February 1, 2026 09:50
Email Logger MU Plugin for WordPress Multisite
<?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)
@ozgursar
ozgursar / email-logger.php
Last active February 1, 2026 09:49
Email Logger MU Plugin for WordPress
<?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());
@ozgursar
ozgursar / Sample_Clawdbot_Config.json
Created January 29, 2026 06:36 — forked from OminousIndustries/Sample_Clawdbot_Config.json
Clawdbot LM Studio Config Sample
{
"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"