WC_Log_Handler_File::close()protectedWC 1.0

Close a handle.

Method of the class: WC_Log_Handler_File{}

No Hooks.

Return

true|false. success

Usage

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

WC_Log_Handler_File::close() code WC 9.3.3

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

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

	return $result;
}