WordPress at Your Fingertips
function is not described

wc_cleanup_logs() WC 3.4.0

Trigger logging cleanup using the logging class.

No Hooks.

Return

null. Nothing.

Usage

wc_cleanup_logs();

Changelog

Since 3.4.0 Introduced.

Code of wc_cleanup_logs() WC 5.8.0

function wc_cleanup_logs() {
	$logger = wc_get_logger();

	if ( is_callable( array( $logger, 'clear_expired_logs' ) ) ) {
		$logger->clear_expired_logs();
	}
}