I am trying to use new Iris color picker on the front-end. I succeed in using it on back-end: while using it on theme options I just enqueued the color picker like this …
wp_enqueue_script( 'wp-color-picker' ); wp_enqueue_style( 'wp-color-picker' );
… and hooked it to
admin_enqueue_scripts. It worked.
However, I don't think the same process will work on the front-end by just hooking to
wp_enqueue_scripts. Should I have to include the core file of new Iris color picker myself, or there is some way I can enqueue the color picker from front-end as I have done in my theme option code?