WC_Log_Handler_DB::clear( string $source )

Clear entries for a chosen handle/source.


Description Description


Parameters Parameters

$source

(Required) Log source.


Top ↑

Return Return

(bool)


Top ↑

Source Source

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

	public function clear( $source ) {
		global $wpdb;

		return $wpdb->query(
			$wpdb->prepare(
				"DELETE FROM {$wpdb->prefix}woocommerce_log WHERE source = %s",
				$source
			)
		);
	}

Top ↑

User Contributed Notes User Contributed Notes

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