| @@ -27,17 +27,13 @@ | ||
| 27 | 27 | |
| 28 | 28 | public function registerWpCron() |
| 29 | 29 | { |
| 30 | 30 | $fiveMinutesHook = 'fluent_booking_five_minutes_tasks'; |
| 31 | - $hourlyHook = 'fluent_booking_hourly_tasks'; | |
| 32 | 31 | $dailyHook = 'fluent_booking/daily_tasks'; |
| 33 | 32 | |
| 34 | 33 | if(function_exists('\as_schedule_recurring_action')) { |
| 35 | 34 | if (!\as_next_scheduled_action($fiveMinutesHook)) { |
| 36 | 35 | \as_schedule_recurring_action(time(), (60 * 5), $fiveMinutesHook, [], 'fluent-booking', true); |
| 37 | - } | |
| 38 | - if (!\as_next_scheduled_action($hourlyHook)) { | |
| 39 | - \as_schedule_recurring_action(time(), (60 * 60), $hourlyHook, [], 'fluent-booking', true); | |
| 40 | 36 | } |
| 41 | 37 | if (!\as_next_scheduled_action($dailyHook)) { |
| 42 | 38 | \as_schedule_recurring_action(time(), (60 * 60 * 24), $dailyHook, [], 'fluent-booking', true); |
| 43 | 39 | } |