WordPress at Your Fingertips
function is not described

WC_Log_Handler_File::write_cached_logs() public WC 1.0

Write cached logs.

{} It's a method of the class: WC_Log_Handler_File{}

No Hooks.

Return

null. Nothing.

Usage

$WC_Log_Handler_File = new WC_Log_Handler_File();
$WC_Log_Handler_File->write_cached_logs();

Code of WC_Log_Handler_File::write_cached_logs() WC 5.8.0

public function write_cached_logs() {
	foreach ( $this->cached_logs as $log ) {
		$this->add( $log['entry'], $log['handle'] );
	}
}