Skip to content

Commit

Permalink
Merge pull request #167 from AlecRust/improve-view
Browse files Browse the repository at this point in the history
Add "View" link
  • Loading branch information
JWardee authored Aug 28, 2022
2 parents 06aea35 + a5de3f8 commit 5cd1ac3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/MailAdminTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ function column_email_to($item)
'delete' => '<a href="' . wp_nonce_url('?page=' . GeneralHelper::$adminPageSlug . '&action=delete&id=' . $item['id'], 'bulk-logs') . '">' . __('Delete', 'WpMailCatcher') . '</a>',
'resend' => '<a href="' . wp_nonce_url('?page=' . GeneralHelper::$adminPageSlug . '&action=resend&id=' . $item['id'], 'bulk-logs') . '">' . __('Resend', 'WpMailCatcher') . '</a>',
'export' => '<a href="' . wp_nonce_url('?page=' . GeneralHelper::$adminPageSlug . '&action=export&id=' . $item['id'], 'bulk-logs') . '">' . __('Export', 'WpMailCatcher') . '</a>',
'view' => '<a href="#" data-toggle="modal" data-target="#' . $item['id'] . '">' . __('View', 'WpMailCatcher') . '</a>',
];

return sprintf('%1$s %2$s', htmlspecialchars($item['email_to']), $this->row_actions($actions));
Expand Down

0 comments on commit 5cd1ac3

Please sign in to comment.