AnsPress_Post_Table_Hooks::cpt_question_columns( array $columns )
Description #
Alter columns in question cpt.
Parameters #
- $columnsarray (Required) Table column.
Source #
File: admin/class-list-table-hooks.php
public static function cpt_question_columns( $columns ) { $columns = array(); $columns['cb'] = '<input type="checkbox" />'; $columns['ap_author'] = __( 'Author', 'anspress-question-answer' ); $columns['title'] = __( 'Title', 'anspress-question-answer' ); if ( taxonomy_exists( 'question_category' ) ) { $columns['question_category'] = __( 'Category', 'anspress-question-answer' ); } if ( taxonomy_exists( 'question_tag' ) ) { $columns['question_tag'] = __( 'Tag', 'anspress-question-answer' ); } $columns['status'] = __( 'Status', 'anspress-question-answer' ); $columns['answers'] = __( 'Ans', 'anspress-question-answer' ); $columns['comments'] = __( 'Comments', 'anspress-question-answer' ); $columns['votes'] = __( 'Votes', 'anspress-question-answer' ); $columns['flags'] = __( 'Flags', 'anspress-question-answer' ); $columns['date'] = __( 'Date', 'anspress-question-answer' ); return $columns; }
Expand full source code Collapse full source code View on GitHub: admin/class-list-table-hooks.php:192
Add your comment