Automattic\WooCommerce\Internal\DataStores\Orders
CustomOrdersTableController::delete_custom_orders_tables()
Delete the custom orders tables and any related options and data in response to the user pressing the tool button.
Метод класса: CustomOrdersTableController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
// private - только в коде основоного (родительского) класса $result = $this->delete_custom_orders_tables();
Код CustomOrdersTableController::delete_custom_orders_tables() CustomOrdersTableController::delete custom orders tables WC 8.7.0
private function delete_custom_orders_tables() { if ( $this->custom_orders_table_usage_is_enabled() ) { throw new \Exception( "Can't delete the custom orders tables: they are currently in use (via Settings > Advanced > Features)." ); } delete_option( self::CUSTOM_ORDERS_TABLE_USAGE_ENABLED_OPTION ); $this->data_synchronizer->delete_database_tables(); }