wc_cleanup_logs()
Trigger logging cleanup using the logging class.
Description Description
Source Source
File: includes/wc-core-functions.php
function wc_cleanup_logs() { $logger = wc_get_logger(); if ( is_callable( array( $logger, 'clear_expired_logs' ) ) ) { $logger->clear_expired_logs(); } }
Changelog Changelog
Version | Description |
---|---|
3.4.0 | Introduced. |