Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save xlplugins/6370058640d6ab56dcac8fdcb3744342 to your computer and use it in GitHub Desktop.

Select an option

Save xlplugins/6370058640d6ab56dcac8fdcb3744342 to your computer and use it in GitHub Desktop.
change cron timing to 10 min to 5 min in sublium
<?php
/**
* Plugin Name: Sublium - Renewal check every 5 minutes
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
add_filter(
'cron_schedules',
function ( $schedules ) {
if ( isset( $schedules['sublium_ten_minutes'] ) ) {
$schedules['sublium_ten_minutes']['interval'] = 5 * MINUTE_IN_SECONDS;
}
return $schedules;
},
110 // After Sublium registers the schedule at priority 100.
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment