Home Forums ACF PRO Time picker increment/steps


Time picker increment/steps

    • ataxel

    • January 6, 2020 at 6:00 am

    I would love the time picker to display only the 15min increments instead of all minutes, can you help me set this up please?

    • tabboy

    • March 1, 2020 at 6:30 am

    I implemented this JS referencing the JS API.

        acf.add_filter('time_picker_args', function (args, field) {
            args.timeFormat = 'h:mm'
            args.altTimeFormat = 'HH:mm'
            args.stepMinute = 15
            return args;
Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.