Skip to content

Instantly share code, notes, and snippets.

@richardsweeney
Created September 4, 2015 11:11
Show Gist options
  • Save richardsweeney/7086b70f7af91158f7ee to your computer and use it in GitHub Desktop.
Save richardsweeney/7086b70f7af91158f7ee to your computer and use it in GitHub Desktop.
You know that weird query that takes ages and you have no idea why the hell WP is doing it: "SELECT DISTINCT meta_key FROM $wpdb->postmeta WHERE meta_key NOT BETWEEN '_' AND '_z' HAVING meta_key NOT LIKE '_' ORDER BY meta_key LIMIT 30"
<?php
add_action( 'admin_menu' , function() {
foreach ( get_post_types() as $post_type ) {
remove_meta_box( 'postcustom' , $post_type , 'normal' );
}
});
@richardsweeney
Copy link
Author

KILL IT WITH FIRE!

@ekandreas
Copy link

Yea!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment