How to Change the Title of a Meta Box on a Specified Custom Post Type? [duplicate]

Yes – you need a slightly modified version of this answer.

add_action( 'add_meta_boxes_post',  'wpse39446_add_meta_boxes' );
function wpse39446_add_meta_boxes( $post ) {
    if( 'mycpt' == get_post_type($post) ){
         remove_meta_box( 'authordiv', 'mycpt', 'core' );
         add_meta_box( 'authordiv', __('Team Member','wpse39446_domain'), 'post_author_meta_box', 'mycpt', 'advanced', 'high' );
     }
}

Note: If you are doing this for a non-core metabox, you’ll need to ensure the callback is called after the metabox is added by specifying a higher priority.

Leave a Comment