WordPress at Your Fingertips
function is not described

wc_update_310_old_comments() WC 1.0

Find old order notes and ensure they have the correct type for exclusion.

No Hooks.

Return

null. Nothing.

Usage

wc_update_310_old_comments();

Code of wc_update_310_old_comments() WC 5.5.2

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

	$wpdb->query( "UPDATE $wpdb->comments comments LEFT JOIN $wpdb->posts as posts ON comments.comment_post_ID = posts.ID SET comment_type = 'order_note' WHERE posts.post_type = 'shop_order' AND comment_type = '';" );
}