Automattic\WooCommerce\Internal\CostOfGoodsSold
CostOfGoodsSoldController::remove_lookup_cogs_columns()
Handler for the "remove COGS value column to the product meta lookup table" admin tool.
Method of the class: CostOfGoodsSoldController{}
No Hooks.
Return
null
. Nothing (null).
Usage
$CostOfGoodsSoldController = new CostOfGoodsSoldController(); $CostOfGoodsSoldController->remove_lookup_cogs_columns();
CostOfGoodsSoldController::remove_lookup_cogs_columns() CostOfGoodsSoldController::remove lookup cogs columns code WC 9.8.2
public function remove_lookup_cogs_columns() { global $wpdb; if ( $this->product_meta_lookup_table_cogs_value_columns_exist() ) { $wpdb->query( "ALTER TABLE {$wpdb->prefix}wc_product_meta_lookup DROP COLUMN cogs_total_value" ); } }