WordPress at Your Fingertips
function is not described

wc_cleanup_session_data() WC 3.3.0

Cleans up session data - cron callback.

Hooks from the function
Return

null. Nothing.

Usage

wc_cleanup_session_data();

Changelog

Since 3.3.0 Introduced.

Code of wc_cleanup_session_data() WC 5.6.0

function wc_cleanup_session_data() {
	$session_class = apply_filters( 'woocommerce_session_handler', 'WC_Session_Handler' );
	$session       = new $session_class();

	if ( is_callable( array( $session, 'cleanup_sessions' ) ) ) {
		$session->cleanup_sessions();
	}
}