Created
April 2, 2019 19:36
-
-
Save gofishwbeeler/f496ba9826b72142b190146b0e4b57fb to your computer and use it in GitHub Desktop.
De-register all Styles from Wordpress
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
function gfd_remove_all_styles() { | |
global $wp_styles; | |
$wp_styles->queue = array(); | |
} | |
add_action('wp_print_styles', 'gfd_remove_all_styles', 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment