| @@ -1,7 +1,9 @@ | ||
| 1 | 1 | <?php |
| 2 | 2 | namespace Hurrytimer; |
| 3 | 3 | |
| 4 | +use Hurrytimer\Utils\Helpers; | |
| 5 | + | |
| 4 | 6 | /** |
| 5 | 7 | * |
| 6 | 8 | * This class handle actions executions |
| 7 | 9 | * |
| @@ -25,10 +27,13 @@ | ||
| 25 | 27 | * Execute registered campaign actions. |
| 26 | 28 | */ |
| 27 | 29 | public function run() |
| 28 | 30 | { |
| 29 | - | |
| 30 | - $this->define_hooks(); | |
| 31 | + $pluginSettings = new PluginSettings(); | |
| 32 | + $settings = $pluginSettings->getSettings(); | |
| 33 | + if(Helpers::isUsingDashboard() && $settings['disable_actions']){ | |
| 34 | + return; | |
| 35 | + } | |
| 31 | 36 | |
| 32 | 37 | foreach ($this->campaign->actions as $action) { |
| 33 | 38 | switch ($action['id']) { |
| 34 | 39 | |