WC_Log_Handler_File::is_open()protectedWC 1.0

Check if a handle is open.

Method of the class: WC_Log_Handler_File{}

No Hooks.

Return

true|false. True if $handle is open.

Usage

// protected - for code of main (parent) or child class
$result = $this->is_open( $handle );
$handle(string) (required)
Log handle.

WC_Log_Handler_File::is_open() code WC 8.7.0

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