Support

Account

Home Forums Front-end Issues Time Picker Args Reply To: Time Picker Args

  • Hi @marc-bovetgmail-com

    Thanks for sharing the export file. I’ve just tested it, and it seems you forgot to close the if statement. Could you please try the following code instead?

    function acf_timepicker_input_admin_footer() {
    ?>
    <script type="text/javascript">
    acf.add_filter('time_picker_args', function( args, $field ){
    	
      if($field.attr('data-key') == 'field_584fd81669c59') { 
    	args.stepMinute = 15;	
    	// return
    	return args;
      } // you forgot this closing
    			
    });
    </script>
    <?php
    		
    }
    add_action('acf/input/admin_footer', 'acf_timepicker_input_admin_footer');

    I hope this helps 🙂