WP_List_Table::prepare_items() WordPress Method
The prepare_items() method is used to prepare the data for display in the table. This includes: - Fetching the data from the database - Sorting the data - Pagination - Filtering
WP_List_Table::prepare_items() #
Prepares the list of items for displaying.
More Information
Developers should use this class to query and filter data, handle sorting, and pagination, and any other data-manipulation required prior to rendering. This method should be called explicitly after instantiating your class, and before rendering.
Source
File: wp-admin/includes/class-wp-list-table.php
267 268 269 | public function prepare_items() { die ( 'function WP_List_Table::prepare_items() must be overridden in a subclass.' ); } |
Expand full source codeCollapse full source codeView on TracView on GitHub
Changelog
Version | Description |
---|---|
3.1.0 | Introduced. |