Check plugin if first time activate or reactivate
-
I’m using
register_activation_hook
to create a database table. But it creates the database table again and again as I deactivate and activate the plugin. For example, if I reactivate the plugin 10 times, there will be 10 identical data. Any way to check if the plugin is the first-time activation or reactivation so that the database will only be created on first-time activation? Or I’m using the wrong functionregister_activation_hook
to do this?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Check plugin if first time activate or reactivate’ is closed to new replies.