ID.php
12 years ago
actions.php
12 years ago
agent.php
12 years ago
approved.php
12 years ago
author-avatar.php
12 years ago
author-email.php
12 years ago
author-ip.php
12 years ago
author-url.php
12 years ago
author.php
12 years ago
date-gmt.php
12 years ago
date.php
12 years ago
excerpt.php
12 years ago
reply-to.php
12 years ago
word-count.php
12 years ago
author-email.php
27 lines
| 1 | <?php |
| 2 | /** |
| 3 | * CPAC_Column_Comment_Author_Email |
| 4 | * |
| 5 | * @since 2.0.0 |
| 6 | */ |
| 7 | class CPAC_Column_Comment_Author_Email extends CPAC_Column { |
| 8 | |
| 9 | function __construct( $storage_model ) { |
| 10 | |
| 11 | $this->properties['type'] = 'column-author_email'; |
| 12 | $this->properties['label'] = __( 'Author email', 'cpac' ); |
| 13 | |
| 14 | parent::__construct( $storage_model ); |
| 15 | } |
| 16 | |
| 17 | /** |
| 18 | * @see CPAC_Column::get_value() |
| 19 | * @since 2.0.0 |
| 20 | */ |
| 21 | function get_value( $id ) { |
| 22 | |
| 23 | $comment = get_comment( $id ); |
| 24 | |
| 25 | return $comment->comment_author_email; |
| 26 | } |
| 27 | } |