WC_Logger::clear()
Clear entries for a chosen file/source.
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: ''
WC_Logger::clear() WC Logger::clear code WC 9.4.2
public function clear( $source = '' ) { if ( ! $source ) { return false; } foreach ( $this->get_handlers() as $handler ) { if ( is_callable( array( $handler, 'clear' ) ) ) { $handler->clear( $source ); } } return true; }