From a31a85acd6155cb9322eab608cf4e7aa74fb769b Mon Sep 17 00:00:00 2001 From: vnmedeiros Date: Mon, 27 Sep 2021 10:42:30 -0300 Subject: [PATCH] feat: add public_url on exporter csv --- src/classes/exporter/class-tainacan-csv.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/classes/exporter/class-tainacan-csv.php b/src/classes/exporter/class-tainacan-csv.php index 5f8695b8d..a9bab17cf 100644 --- a/src/classes/exporter/class-tainacan-csv.php +++ b/src/classes/exporter/class-tainacan-csv.php @@ -97,6 +97,8 @@ class CSV extends Exporter { $line[] = $this->get_author_name_last_modification($item->get_id()); $line[] = $item->get_modification_date(); + + $line[] = get_permalink( $item->get_id() ); $line_string = $this->str_putcsv($line, $this->get_option('delimiter'), $this->get_option('enclosure')); @@ -229,6 +231,7 @@ class CSV extends Exporter { $line[] = 'creation_date'; $line[] = 'user_last_modified'; $line[] = 'modification_date'; + $line[] = 'public_url'; $line_string = $this->str_putcsv($line, $this->get_option('delimiter'), $this->get_option('enclosure'));