Skip to content

Instantly share code, notes, and snippets.

@mwangepatrick
Last active November 25, 2017 08:33
Show Gist options
  • Save mwangepatrick/0ffa1a6963f9d3fd3d7472250c9803fa to your computer and use it in GitHub Desktop.
Save mwangepatrick/0ffa1a6963f9d3fd3d7472250c9803fa to your computer and use it in GitHub Desktop.
ACF : Dequeue select2 Js
<?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