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 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;
}