Skip to content

Instantly share code, notes, and snippets.

@davidperezgar
Forked from BFTrick/functions.php
Last active August 29, 2015 14:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidperezgar/0e4185d1d002a7492133 to your computer and use it in GitHub Desktop.
Save davidperezgar/0e4185d1d002a7492133 to your computer and use it in GitHub Desktop.
Wp Dequeue Styles and Scripts in functions child theme
//dequeue css from plugins
add_action('wp_print_styles', 'mytheme_dequeue_css_from_plugins', 100);
function mytheme_dequeue_css_from_plugins() {
wp_dequeue_style( '' );
}
add_action('wp_print_scripts','mytheme_dequeue_js_from_plugins');
function mytheme_dequeue_js_from_plugins() {
wp_dequeue_script( '' );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment