Home › Forums › General Issues › Time picker: Keep quarter hours › Reply To: Time picker: Keep quarter hours
There is something that I don’t understand.
In my function.php
I added the action:
acf/input/admin_enqueue_scripts
And then in my JS script:
jQuery(document).ready(function($) {
var acfVersion = acf.get('acf_version');
console.log(acfVersion);
acf.addAction('time_picker_init', function( $input, args, field ) {
console.log($input);
console.log(args);
console.log(field);
});
});
Nothing is happening except the version of ACF (which is used just for testing).
Do you know why ?
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.