WC_Logger::clear( string $source = '' )

Clear entries for a chosen file/source.


Description Description


Parameters Parameters

$source

(Optional) Source/handle to clear.

Default value: ''


Top ↑

Return Return

(bool)


Top ↑

Source Source

File: includes/class-wc-logger.php

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

Top ↑

User Contributed Notes User Contributed Notes

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