/**
  * Define the columns that are going to be used in the table
  * @return array $columns, the array of columns to use with the table
  */
 public function get_columns()
 {
     $columns = array_merge(parent::get_columns(), array('title' => __('Title', 'cuar'), 'author' => __('Author', 'cuar')));
     if (!empty($this->associated_taxonomies)) {
         foreach ($this->associated_taxonomies as $id => $tax) {
             $columns[$id] = $tax->labels->name;
         }
     }
     $columns['owner'] = __('Owner', 'cuar');
     $columns['date'] = __('Date', 'cuar');
     return apply_filters('cuar/core/admin/content-list-table/columns?post_type=' . $this->post_type, $columns, $this);
 }
Beispiel #2
0
 /**
  * Define the columns that are going to be used in the table
  * @return array $columns, the array of columns to use with the table
  */
 public function get_columns()
 {
     $columns = array_merge(parent::get_columns(), array('log_timestamp' => __('Date', 'cuar'), 'log_event' => __('Event', 'cuar'), 'log_object' => __('Object', 'cuar'), 'log_user' => __('User', 'cuar'), 'log_extra' => __('Extra info', 'cuar')));
     return $columns;
 }