How can I de-register ALL styles all at once? And same with Javascript?
I hope you know what you are doing. You can use the wp_print_styles and wp_print_scripts action hooks and then get the global $wp_styles and $wp_scripts object variables in their respective hooks. The “registered” attribute lists registered scripts and the “queue” attribute lists enqueued scripts on both of the above objects. An example code to empty … Read more