Created
July 28, 2022 20:35
-
-
Save Pebblo/e53ab2dc5fe2a495a53d1e5b6f75b8ce to your computer and use it in GitHub Desktop.
Example of how to remove scripts/styles from EE admin registration pages when other plugins add them to all admin pages.
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 //Do not include the opening PHP tag if you already have one | |
add_action('admin_print_scripts-event-espresso_page_espresso_registrations', 'tw_ee_remove_conflict_scripts_and_styles', 99); | |
function tw_ee_remove_conflict_scripts_and_styles() { | |
wp_deregister_script('foundation-datepicker'); | |
wp_deregister_style('foundation-datepicker'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment