WordPress at Your Fingertips
function is not described

WC_Logger::clear() public WC 1.0

Clear entries for a chosen file/source.

{} It's a method of the class: WC_Logger{}

No Hooks.

Return

true|false.

Usage

$WC_Logger = new WC_Logger();
$WC_Logger->clear( $source );
$source(string)
Source/handle to clear.
Default: ''

Code of WC_Logger::clear() WC 5.9.0

public function clear( $source = '' ) {
	if ( ! $source ) {
		return false;
	}
	foreach ( $this->handlers as $handler ) {
		if ( is_callable( array( $handler, 'clear' ) ) ) {
			$handler->clear( $source );
		}
	}
	return true;
}