Some plugins may need to be invoked to perform certain tasks from time to time, such as when the cron runs. For this reason plugins may register plugin events. These are Events that provide no parameters but will automatically initialize the plugin and invoke the desired callback method when triggered.
Adding a Plugin Event
To add a plugin event, simply invoke Plugins::addEvent() with the appropriate parameters. To remove a plugin event call Plugins::deleteEvent().