WC_Log_Handler_File::is_open()protectedWC 1.0

Check if a handle is open.

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

Хуков нет.

Возвращает

true|false. True if $handle is open.

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

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

Код WC_Log_Handler_File::is_open() WC 8.7.0

protected function is_open( $handle ) {
	return array_key_exists( $handle, $this->handles ) && is_resource( $this->handles[ $handle ] );
}