Turn off cron task for now
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 26 Apr 2018 12:24:54 +0000 (08:24 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 26 Apr 2018 12:24:54 +0000 (08:24 -0400)
So dev70 doesn't send out emails.

setup/adminHooks.php

index 83666c0..2c6f533 100644 (file)
@@ -34,50 +34,50 @@ add_filter(
     1
 );
 
-add_filter(
-    'glm_associate_cron_request',
-    function( $cron_task ){
-        $new_cron = array(
-            array(
-                'menu'       => 'ajax',
-                'action'     => 'billingFlagExpiredUsers',
-                'daysOfWeek' => range( 1, 7 ),
-                'times'      => range( 1, 24 ),
-                'params'     => array()
-            )
-        );
-        return array_merge( $cron_task, $new_cron );
-    }
-);
-
-add_filter(
-    'glm_associate_cron_request',
-    function( $cron_task ) {
-        $new_cron = array(
-            array(
-                'menu'       => 'ajax',
-                'action'     => 'billingSetupQueue',
-                'daysOfWeek' => range( 1, 7 ),
-                'times'      => range( 3 ),
-                'params'     => array()
-            )
-        );
-        return array_merge( $cron_task, $new_cron );
-    }
-);
-
-add_filter(
-    'glm_associate_cron_request',
-    function( $cron_task ) {
-        $new_cron = array(
-            array(
-                'menu'       => 'ajax',
-                'action'     => 'billingRunQueue',
-                'daysOfWeek' => range( 1, 7 ),
-                'times'      => range( 4 ),
-                'params'     => array()
-            )
-        );
-        return array_merge( $cron_task, $new_cron );
-    }
-);
+// add_filter(
+//     'glm_associate_cron_request',
+//     function( $cron_task ){
+//         $new_cron = array(
+//             array(
+//                 'menu'       => 'ajax',
+//                 'action'     => 'billingFlagExpiredUsers',
+//                 'daysOfWeek' => range( 1, 7 ),
+//                 'times'      => range( 1, 24 ),
+//                 'params'     => array()
+//             )
+//         );
+//         return array_merge( $cron_task, $new_cron );
+//     }
+// );
+//
+// add_filter(
+//     'glm_associate_cron_request',
+//     function( $cron_task ) {
+//         $new_cron = array(
+//             array(
+//                 'menu'       => 'ajax',
+//                 'action'     => 'billingSetupQueue',
+//                 'daysOfWeek' => range( 1, 7 ),
+//                 'times'      => range( 3 ),
+//                 'params'     => array()
+//             )
+//         );
+//         return array_merge( $cron_task, $new_cron );
+//     }
+// );
+//
+// add_filter(
+//     'glm_associate_cron_request',
+//     function( $cron_task ) {
+//         $new_cron = array(
+//             array(
+//                 'menu'       => 'ajax',
+//                 'action'     => 'billingRunQueue',
+//                 'daysOfWeek' => range( 1, 7 ),
+//                 'times'      => range( 4 ),
+//                 'params'     => array()
+//             )
+//         );
+//         return array_merge( $cron_task, $new_cron );
+//     }
+// );