Automattic\WooCommerce\Database\Migrations
MetaToCustomTableMigrator::get_meta_column_config()
Specify meta keys config from source meta table.
Method of the class: MetaToCustomTableMigrator{}
No Hooks.
Return
Array
. 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( ...... ), .... ).
Usage
// protected - for code of main (parent) or child class $result = $this->get_meta_column_config(): array;
MetaToCustomTableMigrator::get_meta_column_config() MetaToCustomTableMigrator::get meta column config code WC 9.7.1
abstract protected function get_meta_column_config(): array;