wc_cleanup_logs()
Trigger logging cleanup using the logging class.
No Hooks.
Return
null
. Nothing.
Usage
wc_cleanup_logs();
Changelog
Since 3.4.0 | Introduced. |
wc_cleanup_logs() wc cleanup logs code WC 7.3.0
function wc_cleanup_logs() { $logger = wc_get_logger(); if ( is_callable( array( $logger, 'clear_expired_logs' ) ) ) { $logger->clear_expired_logs(); } }