Last active
November 25, 2017 08:33
-
-
Save mwangepatrick/0ffa1a6963f9d3fd3d7472250c9803fa to your computer and use it in GitHub Desktop.
ACF : Dequeue select2 Js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//here is the correct way to dequeue the select2 js used by acf | |
function my_acf_init() { | |
acf_update_setting('enqueue_select2', false); //this value defaults to true | |
} | |
add_action('acf/init', 'my_acf_init'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment