cliffordp
1/19/2016 - 3:36 PM

Override The Events Calendar's default "5 minute" increment in Time Picker

Override The Events Calendar's default "5 minute" increment in Time Picker

<?php

// Source: https://gist.github.com/cliffordp/0e69539fc092d0c9e678
//
// Override The Events Calendar's default "5 minute" increment in Time Picker
// Filter found in /wp-content/plugins/the-events-calendar/common/src/Tribe/View_Helpers.php
add_filter( 'tribe_minutes_increment' , 'cliff_custom_tec_minutes_drop_down' );
function cliff_custom_tec_minutes_drop_down() {
  return 1; // change to the increment you want to use (e.g. 1 = every 1 minute should be shown: 00 through 59)
}