You can add extra schedule intervals for Security Ninja → Scheduler with the WordPress cron_schedules filter.
Add the code below to a child theme’s functions.php or a small custom plugin. This example adds a “once every two weeks” interval.
Save the code, then reload the Scheduler settings page and choose the new schedule.
add_filter( 'cron_schedules', 'cron_add_twice_monthly' );
function cron_add_twice_monthly( $schedules ) {
// Adds once every two weeks to the existing schedules.
$schedules['everytwoweeks'] = array(
'interval' => 1209600,
'display' => __( 'Once Every Two Weeks' )
);
return $schedules;
}
WordPress reference: cron_schedules.
Need help adding custom code? See Add custom code to your website.
