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.
Related Posts:
- Placing a Custom Post Type Menu Above the Posts Menu Using menu_position?
- Loading External Scripts in Admin but ONLY for a Specific Post Type?
- How to add custom columns to Custom Post Type admin screen
- How to Make an admin_notices Message That Disappears Once the User Leaves That Particular Page?
- Is it OK to move admin menu items?
- How to add post_author column to custom post type
- Adding help information to custom post edit page
- WordPress User Roles, Custom Post Types, and Admin views
- Using WPAlchemy metabox values in another metabox
- How to customize admin posts based on the user who is logged in
- How can I create a custom meta box to add an mp4 video to a page?
- Remove rows in the manage post/page view
- Selecting a post in Dashboard
- Custom admin post.php page
- How to add a custom-post-type post within another custom-post-type post edit screen using AJAX?
- Use remove_meta_box conditionally on custom post type
- Dashboard : remove Safari navigator message
- Filter posts of custom post type by meta key in (List All Section)
- Add data to post edit page, when post is published
- Multiple wp_editor instances in custom post type using Ajax
- Questions regarding add_meta_box()
- Metaboxes inside Tab
- How can I put content before my custom post type default pages?
- How we can create menu from Appearance > Menu and use as a add-submenu-page for admin menu?
- Metabox collapsed by default
- Help Adding filter to Add Media button for custom post type
- Simple Data picker meta box
- Change column of row action (Quick Edit) links in WP_List_Table
- How to set up a private custom post type that is accessible in the administrative dashboard?
- Custom date changer post_date => future – missed schedule error
- filter custom post type by meta key in dashboard
- Custom Post List View: Page or something else?
- How to Create an Image Upload Box for Custom Posts?
- How to store multiple values in 1 meta_key with radio input?
- What is the best way to correlate one-to-many content-type relationships?
- Custom Taxonomy back-end customizations
- A simple script to allow sorting of custom posts in admin?
- Is it possible to create relational metabox values in a custom post?
- Notify admin on new submit
- Changing custom type name hides the posts
- Team club with CPTs and user registration + user dashboard
- On update or create post redirect to current post position in list
- Visual editor issue by having multiple tiny mce editors in a CPT
- Found 2 elements with non-unique id (#_ajax_nonce) and (#_wpnonce)
- A better way to add a meta box to custom post types
- Cluster CPT posts to users based on ACF value from their profile on dashboard
- Why are taxonomy terms not saving when using custom meta boxes with radio button taxonomy selectors?
- Plugin – Combine Meta Box Input Fields into single saveble record
- Filter term taxonomy metabox in custom post type
- Getting Custom Post Type Meta on Publish
- CPT post count is 0 for the authors in the User list
- Options page – dropdown of users
- Addition of custom option panel crashes Media Library & Admin Area
- Meta Query Filtering not working on Custom Meta Box using Radio Buttons
- How to Upload CSV Data into Custom Post Type Data with Metabox programmatically
- Grouping metadatas into one
- Tracking changes in admin-page so user gets warning when leaving the page
- Anon function and add_meta_box
- Possibilities for the edit.php admin panel? [closed]
- No Permission to add new Page, Post or CPT with Admin role
- Metabox not show in categories custom post type cmb2
- Filter hierarchical custom post type admin page by parent, and include children & grandchildren
- Admin Filter – Add Post Type Description on Post Type Page
- Custom post type editor with dynamic selects, one drop down populating a second second drop down not working
- Repeatable Fields Metabox with Textarea (or wp_editor)
- How to use TinyMCE Editor for one of my custom post meta field?
- Display correctly using metabox.io
- Create Connection Between two post types
- WP-ADMIN – Listing all CPT in “posts” listing
- pre_get_posts for custom page builder meta box
- Disable closing on metaboxes
- Admin Column does not populate with data
- manage_edit-{post_type}_sortable_columns sorts, but wrong!
- Show Custom Post Type meta boxes only on Page Edit
- Cannot save CPT meta box
- How to make custom taxonomy into drop down select in a custom metabox
- Adding Page Templates to post but it ignored it
- Parent Page and Breadcrumb URL’s for Custom Post Types Not Working
- Filtering posts list table
- Create a Dropdown from Custom Post Type
- CPT Validation to not show “Post updated.”
- Translating custom post type metaboxes [closed]
- Adding a metabox on a CPT’s submenu page
- Fixed values for same post translations
- How to Add multiple instance of meta box to custom post type
- Edit Custom Post Type on Custom Admin Page instead Post Admin
- Using POST method in meta box, no results
- meta box on custom post type
- Custom Postype specific changes in admin panel
- Grouping of CPTs and taxonomies into menu groups in admin
- Checking if $_FILE isset for an array of file upload metaboxes
- Ordering values entered in Custom Taxonomies
- Listing custom terms in custom post meta
- Permalinks: custom structure for taxonomy – tags?
- Custom Post Type & Meta Box – Displaying meta box information on front end?
- How can I move (or create another) publish button?
- Wrap meta boxes & data handling for specific post types in classes?
- Can custom fields be added without a meta box?
- Can’t publish custom post type – “You are not allowed to edit this post.”
- Meta Box on Custom Post Type not saving