Skip to content

Instantly share code, notes, and snippets.

@lukecav
Created October 23, 2025 19:33
Show Gist options
  • Save lukecav/c2172c61d17a7053e054ce38b5326314 to your computer and use it in GitHub Desktop.
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
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' );
@lukecav
Copy link
Author

lukecav commented Oct 23, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment