GC_Comments_List_Table::get_columns()

最后更新于:2021-11-26 22:32:51

GC_Comments_List_Table::get_columns()

响应

(array)

源文件

文件: gc-admin/includes/class-gc-comments-list-table.php

	public function get_columns() {
		global $post_id;

		$columns = array();

		if ( $this->checkbox ) {
			$columns['cb'] = '<input type="checkbox" />';
		}

		$columns['author']  = __( 'Author' );
		$columns['comment'] = _x( 'Comment', 'column name' );

		if ( ! $post_id ) {
			/* translators: Column name or table row header. */
			$columns['response'] = __( 'In response to' );
		}

		$columns['date'] = _x( 'Submitted on', 'column name' );

		return $columns;
	}