Security advisorywp2shell: patched is not clean. Confirm 6.8.6, 6.9.5, 7.0.2 on every site.

Read the advisory

Malware scanner

Add custom schedule to scanner

Learn how to add custom Security Ninja scanner schedules in WordPress using the cron_schedules filter, with a ready-to-use two-week scan example. Set it up today.

It is easy to add more schedules to the scanner in Security Ninja.

This is done using a filter built into WordPress, named cron_schedules

You can add below code to your functions.php file. The example below adds a schedule every two weeks.

Make sure to save this in your functions.php file before you reload Security Ninja settings page and set the 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

If you want to know more details about the filter : developer.wordpress.org/reference/hooks/cron_schedules/

Still stuck? Get help or contact us.