PluginProbe
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce / 2.2.16
HurryTimer – An Scarcity and Urgency Countdown Timer for WordPress & WooCommerce v2.2.16
2.15.0 trunk 1.0.0 1.0.1 1.1.0 1.1.1 1.1.2 1.1.3 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 2.0.0 2.0.1 2.0.2 2.0.3 2.0.4 2.1.2 2.1.3 2.1.5 2.1.6 2.1.7 2.1.8 2.10.0 All 62 releases
← All changes | includes/ActionManager.php +7 -2 2.1.52.2.16 View file →
@@ -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