| @@ -113,10 +113,10 @@ | ||
| 113 | 113 | wp_clear_scheduled_hook( $hook_name ); |
| 114 | 114 | $this->log( "Cleared existing WordPress cron event for '{$hook_name}' to prevent conflicts", self::LOG_FILE_NAME ); |
| 115 | 115 | } |
| 116 | 116 | |
| 117 | - // Only save if this is a new callback. | |
| 118 | - if ( ! isset( $this->callbacks[ $hook_name ] ) || $this->callbacks[ $hook_name ]['interval'] !== $interval_seconds ) { | |
| 117 | + // Only save if this is a new callback or something changed. | |
| 118 | + if ( ! isset( $this->callbacks[ $hook_name ] ) || $this->callbacks[ $hook_name ]['interval'] !== $interval_seconds || $this->callbacks[ $hook_name ]['start_time'] !== $start_time ) { | |
| 119 | 119 | $this->callbacks[ $hook_name ] = array( |
| 120 | 120 | 'interval' => $interval_seconds, |
| 121 | 121 | 'start_time' => $start_time, |
| 122 | 122 | 'args' => $args, |