Created
February 10, 2012 16:23
-
-
Save billerickson/1790601 to your computer and use it in GitHub Desktop.
Move Featured Image Metabox
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
<?php | |
add_action('do_meta_boxes', 'be_rotator_image_metabox' ); | |
/** | |
* Move Featured Image Metabox on 'rotator' post type | |
* @author Bill Erickson | |
* @link http://www.billerickson.net/code/move-featured-image-metabox | |
*/ | |
function be_rotator_image_metabox() { | |
remove_meta_box( 'postimagediv', 'rotator', 'side' ); | |
add_meta_box('postimagediv', __('Custom Image'), 'post_thumbnail_meta_box', 'rotator', 'normal', 'high'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment