Support

Account

Home Forums ACF PRO Select2 Conflict with Awesome Support Reply To: Select2 Conflict with Awesome Support

  • Hi @julien731

    Thanks for the topic.
    ACF enqueues the Select2 JS library (v3.5.2) on all admin pages where ACF fields may exist (post, term, user, comment, media, etc).

    ACF has an action called ‘acf/input/admin_enqueue_scripts’ which mimics the WP ‘admin_enqueue_scripts’ one. The ACF select field listens for ‘acf/input/admin_enqueue_scripts’ and enqueues the Select2 JS.

    I hook into the ‘admin_enqueue_scripts’ action with a priority of 20 if that helps.