WC_Log_Handler_File::close()protectedWC 1.0

Close a handle.

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

Хуков нет.

Возвращает

true|false. success

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

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

Код WC_Log_Handler_File::close() WC 8.7.0

protected function close( $handle ) {
	$result = false;

	if ( $this->is_open( $handle ) ) {
		$result = fclose( $this->handles[ $handle ] ); // @codingStandardsIgnoreLine.
		unset( $this->handles[ $handle ] );
	}

	return $result;
}