WordPress provides the remove_meta_box()
function exactly for this purpose:
add_action( 'admin_menu', function () {
remove_meta_box( 'submitdiv', 'events', 'side' );
} );
The second parameter, events
, will need to be replaced with the name of your custom post type.
Related Posts:
- Get post with multiple meta keys and value
- Get posts for custom post type with WP_Query
- Custom Post type in separate database table for syncing
- Why would WordPress use ‘attachment’ in a custom post type’s query string?
- Unregister post type from child theme
- Creating Photo Gallery System with Custom Post Type
- Custom Taxonomies Terms as Post Title for Custom Post Types upon Publishing
- Custom Post Type With Different Views
- How to get term link that crosses different custom post types?
- Custom post type Admin Page
- One of two Custom Post types not being registered
- How to set individual capabilities on a taxonomy? Or how to re-register an existing taxonomy?
- Set post title from two meta fields
- Where to put archive-{post-type}.php
- WP_Query -> sort results by relevance (= most tags / taxonomy terms in common)
- Correct way to use a form to to filter custom posts by taxonomy terms?
- Using Custom Templates for Custom Post Types for the Genesis Theme Framework?
- WordPress custom post type category pagination 404 Error
- Custom Taxonomy order by Custom Field
- Custom Post Type: How to display all of same taxonomy?
- Custom post-type in root directory, blog posts in subdirectory
- How can I include meta box content when searching?
- “More” span making trouble
- Only Show an Author Their Custom Post Types
- How to customize the Categories meta box to allow only one category?
- pre get posts changing the query
- Custom permalink structure for custom post type
- Use a textarea for a custom post type
- Post type hierarchy
- Assigning Multiple Layout Designs with Custom Pages in WordPress?
- Get Custom Field Values by Another Custom Field in WordPress
- Wp Rest API request posts from a custom taxonomy
- Disable single view in register_post_type [duplicate]
- Problem in displaying related posts by specific taxonomy in custom post type
- How is this CPT code in functions.php adding a hidden “products” category?
- Classic editor showing in Gutenberg when creating a custom post type
- how to rewrite args in a custom post type from your functions.php?
- Displaying Multiple Post types in Taxonomy
- Archive of custom post type not showing
- WP_Query | ‘post_type’ doesn’t work
- Sort by custom field is not working
- Can I create a loop with multiple post types and specify different $args for each post type?
- Function to display custom post type on front page makes menu items dissapear
- Display Recently Added Custom Post Types with Custom Taxonomy Shortcode
- How do I display tags for a custom post type single page?
- ACF Values Don’t Show After Import Unless I Edit/Update Post
- How do you paginate a query grouped by month?
- Grouping metadatas into one
- Query Custom Post Type Taxonomy term with multiple parameters
- Changing default ‘posts’ parameters with register_post_type_args
- Custom fields (wp_post_meta) vs Custom Table for large amount of data
- Permalink structure with custom taxonomies and custom post type like /parent-tax/child-tax/custom-post-type-name (with no base name)
- Archive for CPT
- Querying Custom Post Type, ordering by Custom Taxonomy Pagination Not Working
- Define/declare new custom types with fields in plugin?
- Filter get_cat_id for Custom Post Type
- Can custom fields be added without a meta box?
- Why is my WP Query not returning first result’s post meta?
- Check post on publish for blank title
- Query Custom Post Types with checkboxes
- Rewrite custom post type with taxonomy
- Should i use a plugin for Event Manager or code my own needs? [closed]
- Dynamic pages for linked categories and content
- Create Custom Post type that uses Page.php template
- Displaying a custom post type using get_template_part into a specific layout
- How can I make custom static widgets/areas on my homepage?
- Add custom post type taxonomy tag to article class
- Custom Taxonomy dont save in a frontend form for post a custom post
- highlight parent page menu item when in custom post type
- Plugin needed to allow subscribers to post articles on the front end without admin approval [closed]
- Page template that uses lightbox to display post images
- Setting Parent Page to Post
- Custom Post type dont use custom page template (slug is not right)
- Get the taxonomy value in the post loop inside the archive page
- Custom Post Type & Taxonomies – Rewrite
- Custom Post Type and Structure Question
- Custom post type author issues
- Custom Taxonomy Page
- Do not show child pages within a file page
- Change CPT permalink to use the category
- Custom post types & Pages hierarchy – Error 404
- How to prepend text to custom field value A, but only if custom field value B matches a certain string?
- custom post type section selector
- Previous/Next custom post links within custom taxonomy
- wp_dropdown_pages doesn’t allow me to select more than one custom post type
- Override “Parent” input for custom taxonomy
- How to develop custom URL redirection
- disabel for custom post Auto Upload Images
- Function not pulling image or text from custom post type
- Questions on WordPress Codex Concept
- Custom Post Type Archive Links Not Working
- Why is this custom post type defaulting to archive.php?
- Custom post types permalinks not working
- How do I ensure custom post type information is displayed in correct order?
- Tag-post relationship problem
- MF2 and qTranslate problem with custom post types post titles [closed]
- How do I filter a custom post type loop by a field?
- How to order different custom post type in category or tag template page?
- How to manage wordpress knowledge base/wiki/posts collections
- post__in select all custom posts and not the selected array of ids