Quantcast
Viewing all articles
Browse latest Browse all 19

Using WP_List_Table to Create WordPress Admin Tables

In the WordPress dashboard, the tables that displays the posts, pages and user data are all created internally by WordPress using the WP_List_Table PHP class.

Below are a couple of screenshots of the post and user admin pages:

Image may be NSFW.
Clik here to view.
Image-2 - WordPress post and user admin pages

Image may be NSFW.
Clik here to view.
Image 1 - WordPress post and user admin pages

As a plugin developer, the need to build a custom table that will contain a given data might arise. Rather than code your own table design, it's best you use that of WordPress in order for your plugin settings page to conform to WordPress UI.

While you might be tempted to copy the HTML and CSS table design by viewing the source code of WordPress, you shouldn't because WP_List_Table class there to help.

Continue reading %Using WP_List_Table to Create WordPress Admin Tables%


Viewing all articles
Browse latest Browse all 19

Trending Articles