Problem creating a table with dbDelta

if( $installed_ver != $simple_location_version ) {

on first run, $installed_ver is an empty string and $simple_location_version is NULL, so this inequality test will fail and your SQL will never be executed.

if you check for strict inequality, it will work:

if( $installed_ver !== $simple_location_version ) {

Leave a Comment