GetSimple Support Forum

Full Version: activating the plugin and setting it up
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Register plugin is a function that gets called when a plugin is initialized.
Just do call whatever you want before that.
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.
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.