Update cron task
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 30 May 2019 15:47:11 +0000 (11:47 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 30 May 2019 15:47:11 +0000 (11:47 -0400)
Run setup and run queue cron task.

setup/adminHooks.php

index e023b5f..969bc98 100644 (file)
@@ -77,49 +77,49 @@ if ( !$renewalDayStatic ) {
             return array_merge( $cron_task, $new_cron );
         }
     );
+}
 
-    /**
    * Setup cron task request to run billingSetupQueue
    *
    * Run only once per day. Everyday.
    */
-    add_filter(
-        'glm_associate_cron_request',
-        function( $cron_task ) {
-            $new_cron = array(
-                array(
-                    'menu'       => 'ajax',
-                    'action'     => 'billingSetupQueue',
-                    'daysOfWeek' => false,
-                    'times'      => array( 3 ),
-                    'params'     => array()
-                )
-            );
-            return array_merge( $cron_task, $new_cron );
-        }
-    );
+/**
+ * Setup cron task request to run billingSetupQueue
+ *
+ * Run only once per day. Everyday.
+ */
+add_filter(
+    'glm_associate_cron_request',
+    function( $cron_task ) {
+        $new_cron = array(
+            array(
+                'menu'       => 'ajax',
+                'action'     => 'billingSetupQueue',
+                'daysOfWeek' => false,
+                'times'      => array( 3 ),
+                'params'     => array()
+            )
+        );
+        return array_merge( $cron_task, $new_cron );
+    }
+);
 
-    /**
-     * Setup cron task request to run billingRunQueue
-     *
-     * Run only once per day. Everyday.
-     */
-    add_filter(
-        'glm_associate_cron_request',
-        function( $cron_task ) {
-            $new_cron = array(
-                array(
-                    'menu'       => 'ajax',
-                    'action'     => 'billingRunQueue',
-                    'daysOfWeek' => false,
-                    'times'      => array( 4 ),
-                    'params'     => array()
-                )
-            );
-            return array_merge( $cron_task, $new_cron );
-        }
-    );
-}
+/**
+ * Setup cron task request to run billingRunQueue
+ *
+ * Run only once per day. Everyday.
+ */
+add_filter(
+    'glm_associate_cron_request',
+    function( $cron_task ) {
+        $new_cron = array(
+            array(
+                'menu'       => 'ajax',
+                'action'     => 'billingRunQueue',
+                'daysOfWeek' => false,
+                'times'      => array( 4 ),
+                'params'     => array()
+            )
+        );
+        return array_merge( $cron_task, $new_cron );
+    }
+);
 
 /**
  * Filter returning the html for the billing field form (contact)