How to remove all javascript in a theme wordpress?
You either use the admin_*/wp_print_scripts hook or the admin_*/wp_print_styles hook. The styles hook comes before the print scripts hook, so maybe it fits better than just using a priority of 0 for the *_print_scripts hook (there might be function with a name that’s hooked in earlier on priority 0). function wpse61635_remove_all_scripts() { global $wp_scripts; $leave_alone … Read more