Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save annalinneajohansson/7e9e639a662f91eefb12 to your computer and use it in GitHub Desktop.

Select an option

Save annalinneajohansson/7e9e639a662f91eefb12 to your computer and use it in GitHub Desktop.
Move advanced meta boxes to below after the title
<?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