Building extended lists
The extended version of WP_List_Table can be created by manually overriding each and every function in the base class. However, we will take a simpler approach by using an existing template to extend the lists. The WordPress plugin directory contains a useful plugin called Custom List Table Example for the reusable template of the WP_List_Table class. This plugin is not updated for the recent WordPress version. However, the code is still useful for building a custom list table. You can grab a copy of the plugin at http://wordpress.org/plugins/custom-list-table-example/ and get used to the code before we get started.
Create a new class called class-wpwaf-list-table.php and copy the list-table-example.php file from the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access