X

Remove Support for Specific Post Type Features

Snippets by IsItWP

You may want to remove support for specific post type features from your post editing section in WordPress. Every feature has a code that is given below to help with removing the support.

Instructions: Add the following code to the functions.php file of your WordPress theme.
You need to 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)

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

You may also enjoy Social by MailChimp Broadcast custom post type.

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!