| @@ 60-70 (lines=11) @@ | ||
| 57 | * @param array $defaults |
|
| 58 | * @return array $new_columns |
|
| 59 | */ |
|
| 60 | public function add_column_headings ( $defaults ) { |
|
| 61 | $new_columns['cb'] = '<input type="checkbox" />'; |
|
| 62 | $new_columns['title'] = _x( 'Question', 'column name', 'woothemes-sensei' ); |
|
| 63 | $new_columns['question-type'] = _x( 'Type', 'column name', 'woothemes-sensei' ); |
|
| 64 | $new_columns['question-category'] = _x( 'Categories', 'column name', 'woothemes-sensei' ); |
|
| 65 | if ( isset( $defaults['date'] ) ) { |
|
| 66 | $new_columns['date'] = $defaults['date']; |
|
| 67 | } |
|
| 68 | ||
| 69 | return $new_columns; |
|
| 70 | } // End add_column_headings() |
|
| 71 | ||
| 72 | /** |
|
| 73 | * Add data for our newly-added custom columns. |
|
| @@ 1783-1792 (lines=10) @@ | ||
| 1780 | * @param array $defaults |
|
| 1781 | * @return array $new_columns |
|
| 1782 | */ |
|
| 1783 | public function add_column_headings ( $defaults ) { |
|
| 1784 | $new_columns['cb'] = '<input type="checkbox" />'; |
|
| 1785 | $new_columns['title'] = _x( 'Lesson Title', 'column name', 'woothemes-sensei' ); |
|
| 1786 | $new_columns['lesson-course'] = _x( 'Course', 'column name', 'woothemes-sensei' ); |
|
| 1787 | $new_columns['lesson-prerequisite'] = _x( 'Pre-requisite Lesson', 'column name', 'woothemes-sensei' ); |
|
| 1788 | if ( isset( $defaults['date'] ) ) { |
|
| 1789 | $new_columns['date'] = $defaults['date']; |
|
| 1790 | } |
|
| 1791 | return $new_columns; |
|
| 1792 | } // End add_column_headings() |
|
| 1793 | ||
| 1794 | /** |
|
| 1795 | * Add data for our newly-added custom columns. |
|