Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
When active, WPMUDEV hustle breaks the media library (v 4.4.4 or older) This is a temp fix.
// 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