Created
August 12, 2020 15:56
-
-
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.
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 //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