WP-Custom-List-Table-With-Database-Example
WP-Custom-List-Table-With-Database-Example copied to clipboard
DB version check is incorrect
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 = get_option('cltd_example_db_version');