Skip to content

An example for the use of WordPress' WP_List_Table() class in plugins.

Notifications You must be signed in to change notification settings

Veraxus/wp-list-table-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 

Repository files navigation

=== Custom WP List Table Example ===
Contributors: Veraxus
Donate link: http://www.mattvanandel.com/
Tags: example, table, data, WP_List_Table, admin, plugin, list table
Requires at least: 3.5
Tested up to: 4.5
Stable tag: 1.5

A highly documented plugin that demonstrates how to create custom admin list-tables using official WordPress techniques.

== Description ==

This plugin serves as a highly documented example of using WordPress's built-in WP_List_Table class for plugin development. Previously, WordPress plugins had to create list tables from scratch, leading to wildly inconsistent WordPress admin experiences. This example serves to help clarify use of the WP_List_Table class for quickly and easily generating consistent, standardized, feature-rich list-tables for WordPress admin screens.

For demonstration purposes, this plugin creates one new menu item in your admin: "List Table Example". This page includes an example table and all the documentation needed to reproduce and extend it. Developers who open the PHP file itself will find exceptionally well documented code outlining all the information needed to duplicate this feature.

For more information, please visit the <a href="http://codex.wordpress.org/Class_Reference/WP_List_Table">WP_List_Tables</a> page in the WordPress Codex.

== Changelog ==

= 1.5 =
* Numerous tweaks, improvements, and clarifications compliments of Gary Jones.

= 1.4 =
* Minor addition to documentation.
* NOTE: No changes are required to maintain support with new list tables in WordPress 4.3!

= 1.3 =
* Minor updates to documentation
* Fixed the WordPress Plugin Editor link on the example admin page

= 1.2 =
* Fixed a minor bug that could result in sorting not quite working as expected

= 1.1 =
* Fixed an incorrect codex link in the readme

= 1.0 =
* Demonstrates usage of WP_List_Table
* Demonstrates pagination
* Demonstrates column sorting
* Demonstrates inline actions
* Demonstrates bulk actions