Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created January 14, 2021 16:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/ee50c033271de885cd907d189532a513 to your computer and use it in GitHub Desktop.
Save Pebblo/ee50c033271de885cd907d189532a513 to your computer and use it in GitHub Desktop.
<?php // Do not include the opening PHP tag if you already have one.
add_filter('cron_schedules', 'tw_ee_increase_message_cron_interval', 100);
function tw_ee_increase_message_cron_interval( $schedules ) {
// Check if the ee_message_cron schedule is set.
if( isset( $schedules['ee_message_cron'] ) ) {
// If so, increase the interval time to 10 mins.
$schedules['ee_message_cron']['interval'] = 600;
}
return $schedules;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment