From df2f97c078f4d9dc7eea02f0bea9a9b550c7d8e8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rodrigo=20Guimara=CC=83es?= Date: Tue, 27 Oct 2020 02:37:29 -0300 Subject: [PATCH] adds user that edited bulk to display --- .../class-tainacan-bulk-edit-process.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/classes/generic-background-process/class-tainacan-bulk-edit-process.php b/src/classes/generic-background-process/class-tainacan-bulk-edit-process.php index ae6eb87a1..0b3f32890 100644 --- a/src/classes/generic-background-process/class-tainacan-bulk-edit-process.php +++ b/src/classes/generic-background-process/class-tainacan-bulk-edit-process.php @@ -84,10 +84,15 @@ class Bulk_Edit_Process extends Generic_Process { public function get_output() { $name = $this->get_bulk_collection_name(); - $title = __('Collection', 'tainacan'); + $title_label = __('Collection', 'tainacan'); + $author_label = __('Processed by', 'tainacan'); + + $current_user = wp_get_current_user(); + $author_name = $current_user->user_login; $message = __('Bulk edit finished', 'tainacan'); - $message .= "

${title}: ${name}

"; + $message .= "

${title_label}: ${name}

"; + $message .= "

${author_label}: ${author_name}

"; return $message; }