Skip to content

Instantly share code, notes, and snippets.

@ejangi
Created March 24, 2015 10:30
Show Gist options
  • Save ejangi/570042f8479c396fa97c to your computer and use it in GitHub Desktop.
Save ejangi/570042f8479c396fa97c to your computer and use it in GitHub Desktop.
<?php
// Dequeue the junky styles and scripts that plugins inject into your template:
function dequeue_doubleup_styles() {
wp_dequeue_style('stylesheet-id');
}
add_action('wp_print_styles', 'dequeue_doubleup_styles', 999);
function dequeue_doubleup_scripts() {
wp_dequeue_script('script-id');
}
add_action('wp_enqueue_scripts', 'dequeue_doubleup_scripts', 999);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment