Created
September 4, 2015 11:11
-
-
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"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_action( 'admin_menu' , function() { | |
| foreach ( get_post_types() as $post_type ) { | |
| remove_meta_box( 'postcustom' , $post_type , 'normal' ); | |
| } | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
KILL IT WITH FIRE!