diff options
author | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-03-04 22:43:20 +0000 |
---|---|---|
committer | yehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664> | 2018-03-04 22:43:20 +0000 |
commit | 4d764b4df29b9031e6e21036c8880703804b7e58 (patch) | |
tree | 194e4d3ee68d587caec49a4c4672d4c57c2303a0 /Postman/Postman-Email-Log/PostmanEmailLogView.php | |
parent | 437ff5566028c456b39fd96ff988a649edd46063 (diff) | |
download | Post-SMTP-4d764b4df29b9031e6e21036c8880703804b7e58.zip |
* sendgrid 6
* mail params
* email log send to column
* hostname insted of ip in emails
* remove mailgun test folder ( virustotal issue)
* added filters to from_name and from_email filters (local connection)
* change hostname extrect loginc
Diffstat (limited to 'Postman/Postman-Email-Log/PostmanEmailLogView.php')
-rw-r--r-- | Postman/Postman-Email-Log/PostmanEmailLogView.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Postman/Postman-Email-Log/PostmanEmailLogView.php b/Postman/Postman-Email-Log/PostmanEmailLogView.php index 2fb3f72..a754a42 100644 --- a/Postman/Postman-Email-Log/PostmanEmailLogView.php +++ b/Postman/Postman-Email-Log/PostmanEmailLogView.php @@ -55,6 +55,7 @@ class PostmanEmailLogView extends WP_List_Table { */ function column_default( $item, $column_name ) { switch ( $column_name ) { + case 'sent_to' : case 'date' : case 'status' : return $item [ $column_name ]; @@ -159,6 +160,7 @@ class PostmanEmailLogView extends WP_List_Table { $columns = array( 'cb' => '<input type="checkbox" />', // Render a checkbox instead of text 'title' => _x( 'Subject', 'What is the subject of this message?', Postman::TEXT_DOMAIN ), + 'sent_to' => __( 'Sent To', Postman::TEXT_DOMAIN ), 'status' => __( 'Status', Postman::TEXT_DOMAIN ), 'date' => _x( 'Delivery Time', 'When was this email sent?', Postman::TEXT_DOMAIN ), ); @@ -363,9 +365,10 @@ class PostmanEmailLogView extends WP_List_Table { /* Translators: where %s indicates the relative time from now */ $date = sprintf( _x( '%s ago', 'A relative time as in "five days ago"', Postman::TEXT_DOMAIN ), $humanTime ); } - + $meta_values = get_post_meta( $post->ID ); $flattenedPost = array( // the post title must be escaped as they are displayed in the HTML output + 'sent_to' => sanitize_email( $meta_values ['to_header'] [0] ), 'title' => esc_html( $post->post_title ), // the post status must be escaped as they are displayed in the HTML output 'status' => ($post->post_excerpt != null ? esc_html( $post->post_excerpt ) : __( 'Sent', Postman::TEXT_DOMAIN )), |