Skip to content

Commit

Permalink
Use new method
Browse files Browse the repository at this point in the history
  • Loading branch information
SebKay committed Jun 18, 2024
1 parent 3a4a941 commit 7e38fd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/WPCronable.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function scheduleCron(): void
return;
}

\wp_schedule_event(\strtotime("{$this->wp_cron_start} + {$interval['value']} seconds"), $interval['slug'], $this->wp_cron_name);
\wp_schedule_event(\strtotime($this->getCronStart()), $interval['slug'], $this->wp_cron_name);
}

public function unscheduleCron(): void
Expand Down

0 comments on commit 7e38fd0

Please sign in to comment.