Created
January 14, 2021 16:29
-
-
Save Pebblo/ee50c033271de885cd907d189532a513 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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