Automattic\WooCommerce\Database\Migrations\CustomOrderTable
PostsToOrdersMigrationController::get_migrated_meta_keys()
Helper method to get migrated keys for all the tables in this controller.
Метод класса: PostsToOrdersMigrationController{}
Хуков нет.
Возвращает
Строку[]
. Array of meta keys.
Использование
$PostsToOrdersMigrationController = new PostsToOrdersMigrationController(); $PostsToOrdersMigrationController->get_migrated_meta_keys();
Код PostsToOrdersMigrationController::get_migrated_meta_keys() PostsToOrdersMigrationController::get migrated meta keys WC 9.3.3
public function get_migrated_meta_keys() { $migrated_meta_keys = array(); foreach ( $this->all_migrators as $name => $migrator ) { if ( method_exists( $migrator, 'get_meta_column_config' ) ) { $migrated_meta_keys = array_merge( $migrated_meta_keys, $migrator->get_meta_column_config() ); } } return array_keys( $migrated_meta_keys ); }