Home › Forums › Front-end Issues › disableTimeRange ACF Timepicker not working? › Reply To: disableTimeRange ACF Timepicker not working?
I just found the correct answer
<script type=”text/javascript”>
(function($) {
acf.add_filter(‘time_picker_args’, function( args, $field ){
args.hourMin= 7;
args.hourMax= 22;
args.stepMinute = 15;
args[‘showSecond’] = false;
return args;
});
})(jQuery);
</script>
on this site all the args name for timepicker are listed
https://trentrichardson.com/examples/timepicker/
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.