Skip to content

Commit

Permalink
Added clear command
Browse files Browse the repository at this point in the history
  • Loading branch information
jawngee committed May 10, 2019
1 parent 1a956fb commit 5a4a11c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions classes/Logging/MailTemplateLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,9 @@ public static function LogError($template, $to, $bcc, $data, $error) {
'error' => $error
]);
}

public static function Clear() {
global $wpdb;
$wpdb->query('delete from stem_mail_template_log');
}
}

0 comments on commit 5a4a11c

Please sign in to comment.