Created
October 23, 2025 19:33
-
-
Save lukecav/c2172c61d17a7053e054ce38b5326314 to your computer and use it in GitHub Desktop.
Run the Jetpack full sync every 30 minutes the default is 5 minutes
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
| function jetpackcom_custom_sync_schedule( $schedules ) { | |
| if ( ! isset( $schedules['30min'] ) ) { | |
| $schedules['30min'] = array( | |
| 'interval' => 30 * MINUTE_IN_SECONDS, | |
| 'display' => __( 'Every 30 minutes' ), | |
| ); | |
| } | |
| return $schedules; | |
| } | |
| add_filter( 'cron_schedules', 'jetpackcom_custom_sync_schedule' ); | |
| function jetpackcom_return_30_min() { | |
| return '30min'; | |
| } | |
| add_filter( 'jetpack_sync_incremental_sync_interval', 'jetpackcom_return_30_min' ); | |
| add_filter( 'jetpack_sync_full_sync_interval', 'jetpackcom_return_30_min' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://developer.jetpack.com/hooks/jetpack_sync_full_sync_interval/