Automattic\WooCommerce\Database\Migrations

MetaToCustomTableMigrator::get_core_column_mapping()protectedWC 1.0

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() WC 8.7.0

abstract protected function get_core_column_mapping(): array;