WordPress 7.1.2: critical core security fix. Update now, then check inactive themes and comments.

Details

Malware scanner

Add custom schedule to scanner

Add a custom WordPress cron interval for Security Ninja Scheduled Scanner with the cron_schedules filter.

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;
}

Once Every Two Weeks Scheduled Scan

WordPress reference: cron_schedules.

Need help adding custom code? See Add custom code to your website.

Still stuck? Get help or contact us.

Larger screenshot

Enlarged image