WC_Log_Handler_File::close
Close a handle.
Method of the class: WC_Log_Handler_File{}
No Hooks.
Returns
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() WC Log Handler File::close code WC 10.5.0
protected function close( $handle ) {
$result = false;
if ( $this->is_open( $handle ) ) {
$result = fclose( $this->handles[ $handle ] ); // @codingStandardsIgnoreLine.
unset( $this->handles[ $handle ] );
}
return $result;
}