public function action_plugins_loaded()
{
# Register additional collectors:
foreach (apply_filters('qm/collectors', array(), $this) as $collector) {
QM_Collectors::add($collector);
}
# Load dispatchers:
foreach (glob($this->plugin_path('dispatchers/*.php')) as $file) {
include $file;
}
# Register built-in and additional dispatchers:
foreach (apply_filters('qm/dispatchers', array(), $this) as $dispatcher) {
QM_Dispatchers::add($dispatcher);
}
}