BP_Messages_Notices_List_Table::prepare_items()
Set up items for display in the list table.
Description
Handles filtering of data, sorting, pagination, and any other data manipulation required prior to rendering.
Source
File: bp-messages/classes/class-bp-messages-notices-list-table.php
52 53 54 55 56 57 58 59 60 61 62 63 64 65 | public function prepare_items() { $page = $this ->get_pagenum(); $per_page = $this ->get_items_per_page( 'bp_notices_per_page' ); $this ->items = BP_Messages_Notice::get_notices( array ( 'pag_num' => $per_page , 'pag_page' => $page ) ); $this ->set_pagination_args( array ( 'total_items' => BP_Messages_Notice::get_total_notice_count(), 'per_page' => $per_page , ) ); } |
Changelog
Version | Description |
---|---|
BuddyPress 3.0.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.