From 4d7b2578df97b1cea374a61c5a70ed9acc75353d Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Thu, 30 May 2019 11:47:11 -0400 Subject: [PATCH] Update cron task Run setup and run queue cron task. --- setup/adminHooks.php | 82 ++++++++++++++++++++++---------------------- 1 file changed, 41 insertions(+), 41 deletions(-) diff --git a/setup/adminHooks.php b/setup/adminHooks.php index e023b5f..969bc98 100644 --- a/setup/adminHooks.php +++ b/setup/adminHooks.php @@ -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) -- 2.17.1