2018-01-26 15:50:15 +01:00

25 lines
701 B
PHP

<?php
class AIOWPSecurity_Cronjob_Handler {
function __construct()
{
add_action ('aiowps_hourly_cron_event', array(&$this, 'aiowps_hourly_cron_event_handler'));
add_action ('aiowps_daily_cron_event', array(&$this, 'aiowps_daily_cron_event_handler'));
}
function aiowps_hourly_cron_event_handler()
{
//Do stuff that needs checking every hours
do_action('aiowps_perform_scheduled_backup_tasks');
do_action('aiowps_perform_fcd_scan_tasks');
do_action('aiowps_perform_db_cleanup_tasks');
}
function aiowps_daily_cron_event_handler()
{
//Do stuff that needs checking daily
}
}