WC_Log_Handler_File::closeprotectedWC 1.0

Close a handle.

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

Хуков нет.

Возвращает

bool. success

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

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

Код WC_Log_Handler_File::close() WC 11.1.1

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

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

	return $result;
}