Last active
April 22, 2022 05:16
-
-
Save cryptexvinci/51c0d505a246bcf49e10f9f93da55790 to your computer and use it in GitHub Desktop.
Remove um-old-default.css
This file contains hidden or 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 | |
/** | |
* Remove um-old-default.css | |
* UM Dequeue Old UM CSS File. | |
* Removes the um-old-default.css | |
*/ | |
add_action( 'wp_enqueue_scripts', 'remove_um_old_css', UM()->enqueue()->get_priority() + 1 ); | |
if ( ! function_exists( 'remove_um_old_css' ) ) { | |
function remove_um_old_css() { | |
wp_dequeue_style( 'um_default_css' ); | |
wp_dequeue_style( 'um_old_css' ); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment