Remove support for specific post type features

Adding this snippet to the functions.php of your wordpress theme will remove support for the specific features bellow from specified post types. Change the word 'post' to anything you like including a custom post type name or the default post, page.

‘title’ (Post Title)
‘editor’ (content)
‘author’ (Author controls)
‘thumbnail’ (featured image) (current theme must also support Post Thumbnails)
‘excerpt’ (Excerpt functionality)
‘trackbacks’ (Options)
‘custom-fields’ (Custom Fields)
‘comments’ (also will see comment count balloon on edit screen)
‘revisions’ (will store revisions)
‘page-attributes’ (template and menu order) (hierarchical must be true)

Code Snippet:

add_action( 'admin_init', 'wps_cpt_support' );
function wps_cpt_support() {
remove_post_type_support( 'post', 'title' );
remove_post_type_support( 'post', 'comments' );

Comments  Leave a Reply

  1. Is there an equivalent function for removing custom post type fields from an edit screen?

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!