AnsPress_Post_Table_Hooks::cpt_answer_columns( array $columns )

Description #

Answer CPT columns.

Parameters #

  • $columns
    array (Required) Columns.

Changelog #

VersionDescription
2.0.0Introduced.

Source #

File: admin/class-list-table-hooks.php

	public static function cpt_answer_columns( $columns ) {
		$columns = array(
			'cb'             => '<input type="checkbox" />',
			'ap_author'      => __( 'Author', 'anspress-question-answer' ),
			'answer_content' => __( 'Content', 'anspress-question-answer' ),
			'status'         => __( 'Status', 'anspress-question-answer' ),
			'comments'       => __( 'Comments', 'anspress-question-answer' ),
			'votes'          => __( 'Votes', 'anspress-question-answer' ),
			'flags'          => __( 'Flags', 'anspress-question-answer' ),
			'date'           => __( 'Date', 'anspress-question-answer' ),
		);

		return $columns;
	}

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Add your comment