first commit

This commit is contained in:
2026-03-05 13:07:40 +01:00
commit 64ba0721ee
25709 changed files with 4691006 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<?php
/**
* This class sets the wp_cron with intervals
*/
class WooSEA_Cron {
/**
* Function for setting a cron job for regular creation of the feed
* Will create a new event when an old one exists, which will be deleted first
*/
function woosea_cron_scheduling ( $scheduling ) {
if (!wp_next_scheduled( 'woosea_cron_hook' ) ) {
wp_schedule_event ( time(), 'hourly', 'woosea_cron_hook');
} else {
wp_schedule_event ( time(), 'hourly', 'woosea_cron_hook');
}
}
}