Created
October 20, 2016 08:47
-
-
Save gwithian/d6e56035be02e5a8b7627f3e085247fb to your computer and use it in GitHub Desktop.
This file contains 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
/** | |
* Re-position featured image metabox from sidebar to central content area | |
*/ | |
function change_meta_box_position() { | |
remove_meta_box( 'postimagediv', 'post_type_here', 'side' ); | |
add_meta_box( 'postimagediv', __('Featured Image'), 'post_thumbnail_meta_box', 'post_type_here', 'normal', 'high' ); | |
} | |
add_action( 'do_meta_boxes', 'change_meta_box_position' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment