| @@ -55,17 +55,10 @@ | ||
| 55 | 55 | $wpdb->query("UPDATE `{$table}` SET `serial_number` = `id` WHERE `serial_number` IS NULL"); |
| 56 | 56 | } |
| 57 | 57 | } |
| 58 | 58 | |
| 59 | - /* | |
| 60 | - * The below schedule is powered by Action Scheduler by WooCommerce | |
| 61 | - * It will run every 30 minutes. Only schedule it while something is | |
| 62 | - * actually listening (currently only Fluent Support Pro's storage | |
| 63 | - * token refresh / email piping retry) — otherwise it fires with no | |
| 64 | - * callback to run. Any future free-tier listener added via | |
| 65 | - * add_action('fluent_support_half_hourly', ...) makes this schedule | |
| 66 | - * itself automatically, with no change needed here. | |
| 67 | - */ | |
| 59 | + // Half-hourly Action Scheduler job. Only schedule it while something | |
| 60 | + // listens (currently only Pro), otherwise it fires with no callback. | |
| 68 | 61 | $hasListener = has_action('fluent_support_half_hourly'); |
| 69 | 62 | $nextRun = as_next_scheduled_action('fluent_support_half_hourly', [], 'fluent-support'); |
| 70 | 63 | |
| 71 | 64 | if ($hasListener) { |