WordPress at Your Fingertips
function is not described

WC_Log_Handler_File::cache_log() protected WC 1.0

Cache log to write later.

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

No Hooks.


null. Nothing.


// protected - for code of main (parent) or child class
$result = $this->cache_log( $entry, $handle );
$entry(string) (required)
Log entry text.
$handle(string) (required)
Log entry handle.

Code of WC_Log_Handler_File::cache_log() WC 5.8.0

protected function cache_log( $entry, $handle ) {
	$this->cached_logs[] = array(
		'entry'  => $entry,
		'handle' => $handle,