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 ?