Change Featured Image metabox text

This deregisters the original featured image metabox and replaces it with one that has a more appropriate title.  I’ve used this for custom post types where a “featured image” doesn’t make much sense, such as a slider.

Just update Custom Image in line 5.  That’s it!

Uses built-in WordPress hooks.  Works well with other plugins that modify the output in the postimagediv.

<?php add_action('do_meta_boxes', 'customposttype_image_box');
function customposttype_image_box() {
	remove_meta_box( 'postimagediv', 'customposttype', 'side' );
	add_meta_box('postimagediv', __('Custom Image'), 'post_thumbnail_meta_box', 'customposttype', 'normal', 'high');
} ?>

Add to functions.php or plugin.

Dave Winter focuses in WordPress UI Design and WordPress Plugin Development (some have labelled him a fanatic) but has hands in many other projects, including photography and music. He's never far from a computer... or an iPad (for testing purposes, of course). If you've been to a WordCamp in Southern California, he probably already knows who you are (or maybe not - he's terrible with names). Dave currently teaches courses at California State University, Long Beach alongside his small business at (and his students think he's pretty boss).
© 2008-2020,