Skip to content

Commit

Permalink
fix: on exporter csv get login name
Browse files Browse the repository at this point in the history
  • Loading branch information
vnmedeiros committed Nov 18, 2024
1 parent caa194e commit 89140d7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/classes/entities/class-tainacan-item.php
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 118,14 @@ function get_author_name() {
return apply_filters("tainacan-item-get-author-name", $name, $this);
}

/**
* @return string
*/
function get_author_login() {
$name = get_the_author_meta( 'login', $this->get_author_id() );
return apply_filters("tainacan-item-get-author-login", $name, $this);
}

/**
* Gets the thumbnail list of files
*
Expand Down
2 changes: 1 addition & 1 deletion src/classes/exporter/class-tainacan-csv.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 90,7 @@ public function process_item( $item, $metadata ) {

$line[] = $item->get_comment_status();

$line[] = $item->get_author_name();
$line[] = $item->get_author_login();

$line[] = $item->get_creation_date();

Expand Down

0 comments on commit 89140d7

Please sign in to comment.