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{}

Хуков нет.

Возвращает

Строку[]. Array of meta keys.

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

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

Код PostsToOrdersMigrationController::get_migrated_meta_keys() WC 6.8.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 );
}