Automattic\WooCommerce\Database\Migrations\CustomOrderTable

PostsToOrdersMigrationController::get_migrated_meta_keys()publicWC 1.0

Helper method to get migrated keys for all the tables in this controller.

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

No Hooks.

Return

String[]. Array of meta keys.

Usage

$PostsToOrdersMigrationController = new PostsToOrdersMigrationController();
$PostsToOrdersMigrationController->get_migrated_meta_keys();

Code of PostsToOrdersMigrationController::get_migrated_meta_keys() WC 7.1.0

public function get_migrated_meta_keys() {
	$migrated_meta_keys = array();
	foreach ( $this->all_migrators as $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 );
}