WP-Custom-List-Table-With-Database-Example icon indicating copy to clipboard operation
WP-Custom-List-Table-With-Database-Example copied to clipboard

A highly documented wordpress plugin that demonstrates how to create custom admin list-tables from database using WP_List_Table class.

Results 7 WP-Custom-List-Table-With-Database-Example issues
Sort by recently updated
recently updated
newest added

Prashant, thanks very much for this plugin; it's very well done! There is a serious error in cltd_example_persons_page_handler() - the code only works when deleting multiple items. I changed my...

Avoid code duplication and let the parent method [set_pagination_args()](https://developer.wordpress.org/reference/classes/wp_list_table/set_pagination_args/) do the calculation.

Re-use `$sortable` instead of calling `$this->get_sortable_columns()` twice.

Can you please help to update the existing rows thanks in advance

You should make test for $installed_ver BEFORE add_option instruction, otherwise it's code never run)) ``` // save current database version for later use (on upgrade) add_option('cltd_example_db_version', $cltd_example_db_version); ... $installed_ver =...

Thanks for this great example. I'm looking for a other one : table 1 : person table 2 : book_personn (title, ..., person_id, ...) listing/edit/add : person > ok with...