Automattic\WooCommerce\Database\Migrations
MetaToCustomTableMigrator::get_meta_column_config()
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() MetaToCustomTableMigrator::get meta column config WC 7.7.2
abstract protected function get_meta_column_config(): array;