WC_Log_Handler_File::__destruct()

Destructor.


Description Description

Cleans up open file handles.


Source Source

File: includes/log-handlers/class-wc-log-handler-file.php

	public function __destruct() {
		foreach ( $this->handles as $handle ) {
			if ( is_resource( $handle ) ) {
				fclose( $handle ); // @codingStandardsIgnoreLine.
			}
		}
	}

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.