ID.php
10 years ago
actions.php
10 years ago
agent.php
10 years ago
approved.php
10 years ago
author-avatar.php
10 years ago
author-email.php
10 years ago
author-ip.php
10 years ago
author-name.php
10 years ago
author-url.php
10 years ago
author.php
10 years ago
date-gmt.php
10 years ago
date.php
10 years ago
excerpt.php
10 years ago
post.php
10 years ago
reply-to.php
10 years ago
type.php
10 years ago
user.php
10 years ago
word-count.php
10 years ago
author-name.php
23 lines
| 1 | <?php |
| 2 | /** |
| 3 | * @since 2.4.2 |
| 4 | */ |
| 5 | class CPAC_Column_Comment_Author_Name extends CPAC_Column { |
| 6 | |
| 7 | public function init() { |
| 8 | parent::init(); |
| 9 | |
| 10 | // Properties |
| 11 | $this->properties['type'] = 'column-author_name'; |
| 12 | $this->properties['label'] = __( 'Author name', 'codepress-admin-columns' ); |
| 13 | } |
| 14 | |
| 15 | public function get_value( $id ) { |
| 16 | return $this->get_raw_value( $id ); |
| 17 | } |
| 18 | |
| 19 | public function get_raw_value( $id ) { |
| 20 | $comment = get_comment( $id ); |
| 21 | return $comment->comment_author; |
| 22 | } |
| 23 | } |