Last active
October 30, 2018 15:08
-
-
Save nfsarmento/1b5ab4e1af4f44cd1b3e4c4a41142b91 to your computer and use it in GitHub Desktop.
Add custom text on feature image Custom Post Type
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
/** | |
* Add custom text on feature image Custom Post Type | |
* | |
* https://www.nuno-sarmento.com | |
*/ | |
add_action( 'admin_head', 'ns_remove_my_meta_boxen' ); | |
function ns_remove_my_meta_boxen() { | |
remove_meta_box( 'postimagediv', 'staff', 'side' ); | |
add_meta_box('postimagediv', __('Add staff photo W 750px x H 400px'), 'post_thumbnail_meta_box', 'staff', 'side', 'high'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment