public function get_filters() { $filters = array(); $date_interval = new WP_Stream_Date_Interval(); $filters['date'] = array('title' => __('dates', 'stream'), 'items' => $date_interval->intervals); $authors_records = WP_Stream_Admin::get_authors_record_meta($this->assemble_records('author')); $filters['author'] = array('title' => __('authors', 'stream'), 'items' => $authors_records, 'ajax' => count($authors_records) <= 0); $filters['context'] = array('title' => __('contexts', 'stream'), 'items' => $this->assemble_records('context')); $filters['action'] = array('title' => __('actions', 'stream'), 'items' => $this->assemble_records('action')); /** * Filter allows additional filters in the list table dropdowns * Note the format of the filters above, with they key and array * containing a title and array of items. * * @since 0.2.0 * * @return array */ return apply_filters('wp_stream_list_table_filters', $filters); }