Created
April 2, 2019 19:35
-
-
Save gofishwbeeler/d4927564219123fe45b35af7a4ef8da6 to your computer and use it in GitHub Desktop.
De-registers all scripts in 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_scripts() { | |
global $wp_scripts; | |
$wp_scripts->queue = array(); | |
} | |
add_action('wp_print_scripts', 'gfd_remove_all_scripts', 100); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment