public function action_plugins_loaded() { # Register additional collectors: foreach (apply_filters('qm/collectors', array(), $this) as $collector) { QM_Collectors::add($collector); } # Dispatchers: QM_Util::include_files($this->plugin_path('dispatchers')); # Register built-in and additional dispatchers: foreach (apply_filters('qm/dispatchers', array(), $this) as $dispatcher) { QM_Dispatchers::add($dispatcher); } }
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); } }