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

wc_admin_update_0230_rename_gross_total() WC 1.0

Rename "gross_total" to "total_sales". See: https://github.com/woocommerce/woocommerce-admin/issues/3175

Хуков нет.

Возвращает

Null. Ничего.

Использование

wc_admin_update_0230_rename_gross_total();

Код wc admin update 0230 rename gross total: woocommerce/packages/woocommerce-admin/includes/wc-admin-update-functions.php WC 4.3.2

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

	// We first need to drop the new `total_sales` column, since dbDelta() will have created it.
	$wpdb->query( "ALTER TABLE {$wpdb->prefix}wc_order_stats DROP COLUMN `total_sales`" );
	// Then we can rename the existing `gross_total` column.
	$wpdb->query( "ALTER TABLE {$wpdb->prefix}wc_order_stats CHANGE COLUMN `gross_total` `total_sales` double DEFAULT 0 NOT NULL" );
}