Skip to content

Instantly share code, notes, and snippets.

@gdnwebmedia
Last active June 7, 2021 21:30
Show Gist options
  • Save gdnwebmedia/357884437c46603bd88740836a1eee96 to your computer and use it in GitHub Desktop.
Save gdnwebmedia/357884437c46603bd88740836a1eee96 to your computer and use it in GitHub Desktop.
When active, WPMUDEV hustle breaks the media library (v 4.4.4 or older) This is a temp fix.
<?php
// wpmudev_hustle_media_library_fix
// Add this to the functions.php file or use Advanced Scripts to add it when plugins are loaded
function wpmudev_hustle_dequeue_script() {
if( isset( $_GET['ct_builder'] ) ){
wp_dequeue_script( 'hui_scripts' );
wp_dequeue_script( 'hustle_front' );
}
}
add_action( 'wp_print_scripts', 'wpmudev_hustle_dequeue_script', 100 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment