WC_Log_Handler_File::cache_log()
Cache log to write later.
Method of the class: WC_Log_Handler_File{}
No Hooks.
Return
null
. Nothing (null).
Usage
// 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.
WC_Log_Handler_File::cache_log() WC Log Handler File::cache log code WC 9.6.1
protected function cache_log( $entry, $handle ) { $this->cached_logs[] = array( 'entry' => $entry, 'handle' => $handle, ); }