WordPress at Your Fingertips
function is not described

WC_Log_Handler_DB::delete() public WC 1.0

Delete selected logs from DB.

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

No Hooks.

Return

true|false.

Usage

$result = WC_Log_Handler_DB::delete( $log_ids );
$log_ids(int|string|array) (required)
Log ID or array of Log IDs to be deleted.

Code of WC_Log_Handler_DB::delete() WC 5.8.0

public static function delete( $log_ids ) {
	global $wpdb;

	if ( ! is_array( $log_ids ) ) {
		$log_ids = array( $log_ids );
	}

	$format   = array_fill( 0, count( $log_ids ), '%d' );
	$query_in = '(' . implode( ',', $format ) . ')';
	return $wpdb->query( $wpdb->prepare( "DELETE FROM {$wpdb->prefix}woocommerce_log WHERE log_id IN {$query_in}", $log_ids ) ); // @codingStandardsIgnoreLine.
}