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

@ -97,6 +97,8 @@ class CSV extends Exporter {
$line[] = $this->get_author_name_last_modification($item->get_id()); $line[] = $this->get_author_name_last_modification($item->get_id());
$line[] = $item->get_modification_date(); $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')); $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[] = 'creation_date';
$line[] = 'user_last_modified'; $line[] = 'user_last_modified';
$line[] = 'modification_date'; $line[] = 'modification_date';
$line[] = 'public_url';
$line_string = $this->str_putcsv($line, $this->get_option('delimiter'), $this->get_option('enclosure')); $line_string = $this->str_putcsv($line, $this->get_option('delimiter'), $this->get_option('enclosure'));