From: Steve Sutton Date: Thu, 3 May 2018 17:36:27 +0000 (-0400) Subject: Turn off all cron task X-Git-Tag: v1.0.0^2~18 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=572d36c663488aeaf7e3306fdfb4e37ff15855a2;p=WP-Plugins%2Fglm-member-db-billing.git Turn off all cron task Not ready. --- diff --git a/setup/adminHooks.php b/setup/adminHooks.php index 3622139..aa29cd3 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -39,61 +39,61 @@ add_filter( * * Run only once per day. Everyday. */ -add_filter( - 'glm_associate_cron_request', - function( $cron_task ){ - $new_cron = array( - array( - 'menu' => 'ajax', - 'action' => 'billingFlagExpiredUsers', - 'daysOfWeek' => range( 1, 7 ), - 'times' => array( 5 ), - //'times' => range( 0, 23 ), - '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' => array( 5 ), +// //'times' => range( 0, 23 ), +// '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' => range( 1, 7 ), - 'times' => array( 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' => 'billingSetupQueue', +// 'daysOfWeek' => range( 1, 7 ), +// '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' => range( 1, 7 ), - 'times' => array( 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' => 'billingRunQueue', +// 'daysOfWeek' => range( 1, 7 ), +// 'times' => array( 4 ), +// 'params' => array() +// ) +// ); +// return array_merge( $cron_task, $new_cron ); +// } +// );