From 4e6730f395608e6cca7cc0b98e39bcdeda831170 Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Thu, 7 May 2020 11:33:15 -0300 Subject: [PATCH] add name taxonomie in exporter terms csv #385 --- src/classes/exporter/class-tainacan-term-exporter.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/classes/exporter/class-tainacan-term-exporter.php b/src/classes/exporter/class-tainacan-term-exporter.php index 1da9b37f7..839df19bc 100644 --- a/src/classes/exporter/class-tainacan-term-exporter.php +++ b/src/classes/exporter/class-tainacan-term-exporter.php @@ -40,8 +40,12 @@ class Term_Exporter extends Exporter { if ( is_array($files) && isset($files['csvvocabularyexporter.csv'])) { $file = $files['csvvocabularyexporter.csv']; - - $message = __('Your CSV file is ready! Access it in the link below:', 'tainacan'); + $taxonomie = \Tainacan\Repositories\Taxonomies::get_instance()->fetch_by_db_identifier( $this->get_option('select_taxonomy') ); + if ( !empty($taxonomie) ) { + $message = __('target taxonomie:', 'tainacan'); + $message .= " " . $taxonomie->get_name() . "
"; + } + $message .= __('Your CSV file is ready! Access it in the link below:', 'tainacan'); $message .= '

'; $message .= 'Download';