add name taxonomie in exporter terms csv #385
This commit is contained in:
parent
1ed99cb1ae
commit
4e6730f395
|
@ -40,8 +40,12 @@ class Term_Exporter extends Exporter {
|
||||||
|
|
||||||
if ( is_array($files) && isset($files['csvvocabularyexporter.csv'])) {
|
if ( is_array($files) && isset($files['csvvocabularyexporter.csv'])) {
|
||||||
$file = $files['csvvocabularyexporter.csv'];
|
$file = $files['csvvocabularyexporter.csv'];
|
||||||
|
$taxonomie = \Tainacan\Repositories\Taxonomies::get_instance()->fetch_by_db_identifier( $this->get_option('select_taxonomy') );
|
||||||
$message = __('Your CSV file is ready! Access it in the link below:', 'tainacan');
|
if ( !empty($taxonomie) ) {
|
||||||
|
$message = __('target taxonomie:', 'tainacan');
|
||||||
|
$message .= " <b>" . $taxonomie->get_name() . "</b><br/>";
|
||||||
|
}
|
||||||
|
$message .= __('Your CSV file is ready! Access it in the link below:', 'tainacan');
|
||||||
$message .= '<br/><br/>';
|
$message .= '<br/><br/>';
|
||||||
$message .= '<a href="' . $file['url'] . '">Download</a>';
|
$message .= '<a href="' . $file['url'] . '">Download</a>';
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue