feat: add public_url on exporter csv

This commit is contained in:
vnmedeiros 2021-09-27 10:42:30 -03:00
parent 880c3c00eb
commit a31a85acd6
1 changed files with 3 additions and 0 deletions

View File

@ -98,6 +98,8 @@ class CSV extends Exporter {
$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'));
$this->append_to_file($this->collection_name, $line_string."\n");
@ -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'));