Clean-up script tags
If you really want to do this, then it should already be possible. The global $wp_scripts is an instance of the WP_Scripts class, which is an instance of the WP_Dependencies class. So in theory (not tested), you should be able to do something like this: function alter_script_tags() { echo ‘<pre>’; print $GLOBALS[‘wp_scripts’]->print_html; echo ‘</pre>’; } … Read more