Adding code to plugin that only executes the first time its activated?
Posted
by Scott B
on Stack Overflow
See other posts from Stack Overflow
or by Scott B
Published on 2010-04-22T19:27:41Z
Indexed on
2010/04/22
19:33 UTC
Read the original article
Hit count: 200
Is it possible to wrap code in a special function that only executes the first time the plugin is activated?
I have some database code I need to run on plugin activation, but the code need not run again after that.
© Stack Overflow or respective owner