You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
701 B
25 lines
701 B
<?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
|
|
}
|
|
|
|
}
|
|
|