Created
October 22, 2026 11:06
-
-
Save xlplugins/6370058640d6ab56dcac8fdcb3744342 to your computer and use it in GitHub Desktop.
change cron timing to 10 min to 5 min in sublium
This file contains hidden or 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 | |
| /** | |
| * 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