Skip to content

Instantly share code, notes, and snippets.

@rajeshsingh520
Created December 9, 2025 10:53
Show Gist options
  • Select an option

  • Save rajeshsingh520/2d05d47ab63f3dd2d3b8cba65df0f1a9 to your computer and use it in GitHub Desktop.

Select an option

Save rajeshsingh520/2d05d47ab63f3dd2d3b8cba65df0f1a9 to your computer and use it in GitHub Desktop.
set 12:30 pm as Next day cutoff time for saturday and for remaining days it will remain normal as per your setting
add_filter('pisol_dtt_setting_filter_pi_next_day_delivery_cutoff_time', function($time) {
// current_time('w') returns 0 (Sunday) through 6 (Saturday) in WP
if ( (int) current_time( 'w' ) === 6 ) {
return '12:30';
}
return $time;
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment