Automattic\WooCommerce\Database\Migrations
MetaToCustomTableMigrator::get_core_column_mapping()
Specify column config from the source table.
Метод класса: MetaToCustomTableMigrator{}
Хуков нет.
Возвращает
Массив
. Config, must be of the form: array( '$source_column_name_1' => array( // $source_column_name_1 is column name in source table, or a select statement.
'type' => 'type of value, could be string/int/date/float.', 'destination' => 'name of the column in column name where this data should be inserted in.',
), '$source_column_name_2' => array( ...... ), .... ).
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_core_column_mapping(): array;
Код MetaToCustomTableMigrator::get_core_column_mapping() MetaToCustomTableMigrator::get core column mapping WC 7.7.2
abstract protected function get_core_column_mapping(): array;