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 ) {
Related Posts:
- Must activation/deactivation functions in a class be static?
- Viewing output when the “The plugin generated x characters of unexpected output during activation” error is triggered
- Add update services on theme activation
- Use an activation code to change a role [closed]
- How to let new users login without email activation
- On local machine can’t log in or reset password but I can log in on the live version, user has activation key in database
- Uninstall, Activate, Deactivate a plugin: typical features & how-to
- Activate a plugin through PHPMyAdmin or FTP?
- How to redirect to settings page once the plugin is activated?
- How to output message during plugin activation
- Prevent network activation of plugin
- Import WordPress XML File from Within Functions.php
- Does wordpress create activity, update logs?
- Customizing wp-activate.php
- How to Modify/Change a Buddypress/WordPress Account Activation Process
- Login email after registration never sent or received
- Automatically install wordpress plugin at theme activation
- Show a confirm message before plug-in activation
- Using wp_cron with custom time interval and the register activation hook
- Is it possible to stop a theme activation when a certain plugin is not activated
- Send activation email to user after signup [duplicate]
- Multisite: setting theme and options when a new blog is created
- Function to activate WordPress theme inside a plugin
- Can’t add user to blog on registration (Multisite)
- wpmu_signup_user_notification filter not working
- explanation for activate_plugin function in wordpress core
- Ask user permission when activating a plugin
- Force plugin to fail activation
- Override pluggable functions in a plugin?
- Plugin activation error due to unexpected output
- Customize user account activation message
- Correct way to use register_activation_hook
- wordpress in nginx docker container connected to php:8-fpm container and mariadb container isn’t creating any tables on plugin activation
- How to include plugin without activation?
- Unexpected Output: register_activation_hook with namespace
- Auto add content such as pages upon plugin activation?
- Detect when any plugin is activated or deactivated
- How to automate wordpress plugin activate and deactivate by php logic?
- Comments deactivated
- Default Plugin Settings Not Writing to Database
- is_plugin_active() not properly returning true
- How to properly setup an activation hook
- Plugin won’t activate – cannot declare class (already in use)
- How to activate plugins for my WordPress sites from a remote server
- register_activation_hook with include file [closed]
- Prevent a plugin from being automatically activated
- Is any information available in PHP files in WP about plugin activation history?
- Activated plugin is stored as an object, rather than as a path
- Own plugin corrups plugin-activation
- How to check if tables in WordPress still exists after activations
- Run plugins only on certain pages
- Are functions in main plugin file called before function bound to register_activation_hook runs?
- Force file download on plugin activation
- What is the correct way of updating wordpress options
- WordPress user account activation
- Why this function not working for install database on plugin activation
- How do i place same widgets multiple time by default on theme activation?
- Run function on plugin activation before plugin is loaded
- register_activation_hook for multiple functions
- How can I create blog specific database table in multisite?
- WordPress Plugin Activate / Deactive Failing
- When a plugin gets updated from the repo, does the “activation” hook fire again?
- How can I manually activate a new site in a wordpress multisite network?
- A question about register_activation hook
- rewrite_rules() not applying rules on plugin activation only after permalinks menu is clicked
- register_activation_hook() not working as expected
- Class cannot be found, but it’s available in the file, I get: Fatal Error: Uncaught Error: Class ‘Blocks\Base\Activation’ not found
- Create a CSS file in plugin folder when theme is activated
- Advanced WordPress plugin activation detection
- Activation Account Email
- Apparent errer when installing plugin
- Plugin can’t be activated [closed]
- Activate a plugin via a SQL query
- Activation flow of a plugin in a multisite environment
- Activation email to change admin address not being sent to Gsuite email account
- how to enable/activate a plugin per Cpanel
- My WordPress activation hook isn’t working
- WordPress Fatal error: Uncaught Error: Call to undefined function dbDelta()
- Custom Plugin activation error in Multisite
- Redirect after plugin activation
- Cannot modify header information – headers already sent during plugin activation
- How to store in the database directly the translation?
- Unable to show a message after plugin activation
- Activation of new Registered site fails on multisite
- Error Copying Directory On Plugin Activation
- WordPress hook source
- Resend user activation mail
- Fetch User Meta Data
- Refresh or redirect page after activate my plugin
- Problems with installing and deleting plugins
- Custom WP deactivate an email activation link sent to user’s email.
- WordPress plugin tables become corrupt
- Menu item not created on theme activation
- Plugin De/Activation Not Firing On MultiSite install
- Buddypress send admin notification email when new subscriber registers
- Custom Table doesn’t create on plugin activation
- how can a plugin return an error message on activation?
- Is there a canonical way for a plugin to install a mu-plugin or drop-in?
- Backend working but not front
- My activator class isn’t running the code inside