WC_Log_Handler_File::close( string $handle )

Close a handle.


Description Description


Parameters Parameters

$handle

(Required) Log handle.


Top ↑

Return Return

(bool) success


Top ↑

Source Source

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

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

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

		return $result;
	}


Top ↑

User Contributed Notes User Contributed Notes

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