WC_Log_Handler_File::cache_log()protectedWC 1.0

Cache log to write later.

Метод класса: WC_Log_Handler_File{}

Хуков нет.

Возвращает

null. Ничего (null).

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->cache_log( $entry, $handle );
$entry(строка) (обязательный)
Log entry text.
$handle(строка) (обязательный)
Log entry handle.

Код WC_Log_Handler_File::cache_log() WC 8.7.0

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