feature: Add "Clear logs" function

This commit is contained in:
Keith Solomon
2025-12-14 17:17:16 -06:00
parent 189b32ccff
commit 9375ca61a0
2 changed files with 49 additions and 0 deletions

View File

@@ -58,4 +58,13 @@ class Logger {
return array_slice( $logs, 0, $limit );
}
/**
* Clears all stored log entries.
*
* @return void
*/
public static function clear(): void {
delete_option( self::OPTION_KEY );
}
}