Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

De-register De-queue WordPress Loaded Scripts & Styles

April 27, 2014 1 Comment

You can de-register and de-queue WordPress loaded javascripts and CSS styles by passing them into the wp_print_scripts function. This can help with fewer server requests if the scripts are no longer required or if a conflict is occurring.

So for example if I wanted to remove the WordPress Twenty Twelve default mobile menu javascript you would use:

//Remove 2012 Mobile Javascript
function de_script() {
    wp_dequeue_script( 'twentytwelve-navigation' );
    wp_deregister_script( 'twentytwelve-navigation' );
}

add_action( 'wp_print_scripts', 'de_script', 100 );

You just need to know what name was used to register and enqueue it.

Cats: WordPress

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS feed: ars technica ars technica

  • Review: The iPhone 18 Pro is Apple's coolest smartphone (but only literally)
  • Review: Apple's hyper-pricey M5 Ultra Mac Studio made me into a vibe coder
  • Apple Mac mini review: The new M6 impresses, but the price hike is rough
  • Apple reportedly building server packed with M-series Ultra chips for AI
  • macOS 27 Golden Gate: The Ars Technica review

RSS feed: mac surfer mac surfer

  • watchOS 27.0.1 Expands Support, Fixes Restart Bug
  • Apple Releases macOS Golden Gate 27.0.1
  • Apple Releases iOS 27.0.1 With Face ID Fix
  • Duo-Man App Turns iPhone Duo Into Virtual Walkman
  • Jury Orders Apple to Pay $5.7B Over Haptic Patents

Donate

Copyright © 2026· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2026 · gee on Genesis Framework · WordPress · Log in