Posts: 24
Threads: 6
Joined: Aug 2012
when a plugin is activated, change_plugin() should give a chance to the plugin to initialize itself (things like checking if all the paths it needs are writable...)
i there is an interest i might spend some time and make a proposition for it...
ciao
a.l.e
Posts: 6,266
Threads: 181
Joined: Sep 2011
Register plugin is a function that gets called when a plugin is initialized.
Just do call whatever you want before that.
Posts: 24
Threads: 6
Joined: Aug 2012
hi shawn,
looking at the code, `register_plugin()` seems to get called each time the plugin is loaded.
i'm looking for a way to do some sanity checks when the plugin gets activated (so first used!) and not each time a page is loaded.
Posts: 6,266
Threads: 181
Joined: Sep 2011
Ahh hmm I was looking at implementing a plugin flag for that so we can indicate new plugins.
Something like might make it easier to know if its first run.