Automattic\WooCommerce\Database\Migrations

MetaToCustomTableMigrator::get_meta_column_config()protectedWC 1.0

Specify meta keys config from source meta table.

Метод класса: MetaToCustomTableMigrator{}

Хуков нет.

Возвращает

Массив. Config, must be of the form. array( '$meta_key_1' => array( // $meta_key_1 is the name of meta_key in source meta table. '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.', ), '$meta_key_2' => array( ...... ), .... ).

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->get_meta_column_config(): array;

Код MetaToCustomTableMigrator::get_meta_column_config() WC 8.7.0

abstract protected function get_meta_column_config(): array;