Custom List Table Example

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 be created from scratch and were often wildly inconsistent with the rest of the WordPress admin. 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.

One new admin menu is created: “List Table Example”. This page includes an example table and all the documentation needed to reproduce 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 WP_List_Tables page in the WordPress Codex.

Reviews

Excellent work

Thanks a lot! It’s stuff like this that makes WordPress such a great platform to work with.

Awesome class but not working on some servers

Thanks Awesome class!!

I used it for my plugin. Some servers did not work. However, if you make the following corrections, it worked.
before(line57-59)

if(!class_exists('WP_List_Table')){
    require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
}

after

if(!class_exists('WP_List_Table')){
    require_once( ABSPATH . 'wp-admin/includes/class-wp-screen.php' );
    require_once( ABSPATH . 'wp-admin/includes/screen.php' );
    require_once( ABSPATH . 'wp-admin/includes/class-wp-list-table.php' );
    require_once( ABSPATH . 'wp-admin/includes/template.php' );
}

Precious

Thanks for the wonderful work. I’d love to make a small donation, if you welcome them! 🙂

Read all 41 reviews

Contributors & Developers

“Custom List Table Example” is open source software. The following people have contributed to this plugin.

Contributors

Changelog

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