WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

wc_update_310_old_comments() WC 1.0

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

Хуков нет.


Null. Ничего.



Код wc update 310 old comments: woocommerce/includes/wc-update-functions.php WC 4.3.1

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 = '';" );