Created
May 11, 2014 03:49
-
-
Save annalinneajohansson/7e9e639a662f91eefb12 to your computer and use it in GitHub Desktop.
Move advanced meta boxes to below after the title
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 | |
| /** | |
| * Move advanced meta boxes to below after the title | |
| */ | |
| function hip_mc_move_settings_box() { | |
| # Get the globals: | |
| global $post, $wp_meta_boxes; | |
| $posttype = "post"; | |
| # Output the "advanced" meta boxes: | |
| do_meta_boxes( get_current_screen(), 'advanced', $post ); | |
| # Remove the initial "advanced" meta boxes: | |
| unset( $wp_meta_boxes[$posttype]['advanced'] ); | |
| } | |
| add_action( 'edit_form_after_title', 'hip_mc_move_settings_box' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment