Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
activating the plugin and setting it up
#1
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
Reply
#2
Register plugin is a function that gets called when a plugin is initialized.
Just do call whatever you want before that.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply
#3
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.
Reply
#4
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.
NEW: SA Admin Toolbar Plugin | View All My Plugins
- Shawn A aka Tablatronix
Reply




Users browsing this thread: 1 Guest(s)