@@ 40-47 (lines=8) @@ | ||
37 | return $results; |
|
38 | } |
|
39 | ||
40 | function get_columns() { |
|
41 | $columns = array( |
|
42 | 'feedback_from' => __('From', 'jetpack'), |
|
43 | 'feedback_message' => __('Message', 'jetpack'), |
|
44 | 'feedback_date' => __('Date', 'jetpack'), |
|
45 | ); |
|
46 | return $columns; |
|
47 | } |
|
48 | ||
49 | function prepare_items( $search_term = '' ) { |
|
50 | $this->_column_headers = array( $this->get_columns(), array(), array() ); |
@@ 257-266 (lines=10) @@ | ||
254 | } |
|
255 | ||
256 | add_filter( 'manage_feedback_posts_columns', 'grunion_post_type_columns_filter' ); |
|
257 | function grunion_post_type_columns_filter( $cols ) { |
|
258 | $cols = array( |
|
259 | 'cb' => '<input type="checkbox" />', |
|
260 | 'feedback_from' => __( 'From', 'jetpack' ), |
|
261 | 'feedback_message' => __( 'Message', 'jetpack' ), |
|
262 | 'feedback_date' => __( 'Date', 'jetpack' ) |
|
263 | ); |
|
264 | ||
265 | return $cols; |
|
266 | } |
|
267 | ||
268 | add_action( 'manage_posts_custom_column', 'grunion_manage_post_columns', 10, 2 ); |
|
269 | function grunion_manage_post_columns( $col, $post_id ) { |