File "author-name.php"

Full Path: /www/wwwroot/shphe-en.com/wp-content/plugins/admin-columns-pro/codepress-admin-columns/classes/column/comment/author-name.php
File size: 501 bytes
MIME-type: --
Charset: utf-8

<?php
/**
 * @since 2.4.2
 */
class CPAC_Column_Comment_Author_Name extends CPAC_Column {

	public function init() {
		parent::init();

		// Properties
		$this->properties['type']	 = 'column-author_name';
		$this->properties['label']	 = __( 'Author name', 'codepress-admin-columns' );
	}

	public function get_value( $id ) {
		return $this->get_raw_value( $id );
	}

	public function get_raw_value( $id ) {
		$comment = get_comment( $id );
		return $comment->comment_author;
	}
}