update
This commit is contained in:
@@ -65,11 +65,7 @@ function yacht_booking_activate() {
|
||||
$installer = new YachtBooking\Installer();
|
||||
$installer->install();
|
||||
|
||||
// Setup Google Calendar cron jobs
|
||||
require_once YACHT_BOOKING_PLUGIN_DIR . 'integrations/google-calendar/class-sync-controller.php';
|
||||
YachtBooking\Integrations\GoogleCalendar\Sync_Controller::setup_cron();
|
||||
|
||||
// Setup iCal import cron
|
||||
// Setup iCal import cron (globalny — z 09-02)
|
||||
require_once YACHT_BOOKING_PLUGIN_DIR . 'integrations/ical/class-ical-import.php';
|
||||
YachtBooking\Integrations\ICal\ICal_Import::setup_cron();
|
||||
|
||||
@@ -82,10 +78,6 @@ register_activation_hook( __FILE__, 'yacht_booking_activate' );
|
||||
* Plugin deactivation hook
|
||||
*/
|
||||
function yacht_booking_deactivate() {
|
||||
// Clear Google Calendar cron jobs
|
||||
require_once YACHT_BOOKING_PLUGIN_DIR . 'integrations/google-calendar/class-sync-controller.php';
|
||||
YachtBooking\Integrations\GoogleCalendar\Sync_Controller::clear_cron();
|
||||
|
||||
// Clear iCal import cron
|
||||
require_once YACHT_BOOKING_PLUGIN_DIR . 'integrations/ical/class-ical-import.php';
|
||||
YachtBooking\Integrations\ICal\ICal_Import::clear_cron();
|
||||
|
||||
Reference in New Issue
Block a user