Skip to content

Instantly share code, notes, and snippets.

@tomhemsley
Created July 21, 2014 10:37
Show Gist options
  • Save tomhemsley/9618a8a1e73dc23e0608 to your computer and use it in GitHub Desktop.
Save tomhemsley/9618a8a1e73dc23e0608 to your computer and use it in GitHub Desktop.
Default Thumbnail Plus Fix
function metaslider_default_thumbnail_plus_fix() {
global $pagenow;
if ( $pagenow == 'media-upload.php' && isset( $_GET['tab'] ) ) {
wp_dequeue_script( 'slt-file-select' );
}
}
add_action( 'admin_print_scripts', 'metaslider_default_thumbnail_plus_fix' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment