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.


Top ↑

Source

File: wp-admin/includes/class-wp-list-table.php

	public function prepare_items() {
		die( 'function WP_List_Table::prepare_items() must be overridden in a subclass.' );
	}


Top ↑

Changelog

Changelog
VersionDescription
3.1.0Introduced.

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.