Skip to content

Instantly share code, notes, and snippets.

@Pebblo
Created August 12, 2020 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pebblo/7fc7fa30663583ad3d0b42ef44039411 to your computer and use it in GitHub Desktop.
Save Pebblo/7fc7fa30663583ad3d0b42ef44039411 to your computer and use it in GitHub Desktop.
How to prevent ACF from enqueing its own DatePicker on EE's editor.
<?php //Please do not include the opening PHP tag if you already have one.
add_filter('add_meta_boxes_espresso_events', 'tw_ee_disable_acf_datetimepicker');
function tw_ee_disable_acf_datetimepicker() {
add_filter('acf/settings/enqueue_datetimepicker', '__return_false');
add_filter('acf/settings/enqueue_datepicker', '__return_false');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment