WordPress at Your Fingertips
function is not described

wc_update_350_reviews_comment_type() WC 1.0

Set the comment type to 'review' for product reviews that don't have a comment type.

No Hooks.

Return

null. Nothing.

Usage

wc_update_350_reviews_comment_type();

Code of wc_update_350_reviews_comment_type() WC 5.5.2

<?php
function wc_update_350_reviews_comment_type() {
	global $wpdb;

	$wpdb->query(
		"UPDATE {$wpdb->prefix}comments JOIN {$wpdb->prefix}posts ON {$wpdb->prefix}posts.ID = {$wpdb->prefix}comments.comment_post_ID AND ( {$wpdb->prefix}posts.post_type = 'product' OR {$wpdb->prefix}posts.post_type = 'product_variation' ) SET {$wpdb->prefix}comments.comment_type = 'review' WHERE {$wpdb->prefix}comments.comment_type = ''"
	);
}