[resolved] Removing standard content box (3 posts)

  1. Khoryolis
    Posted 3 years ago #


    Is there a proper way to remove the standard content box ?

    I am used to select what to display without your great plugin, like that :
    'supports' => array('title','author','thumbnail','excerpt','comments');

    But how to do it with SuperCPT ?



  2. Matthew Boynes
    Plugin Author

    Posted 3 years ago #

    Hi Khoryolis,
    Thanks for trying out the plugin! This plugin is merely a wrapper for the core functions, so you can do it the exact same way. The arguments for the Super_Custom_Post_Type construct are (post type, singular label, plural label, arguments for register_post_type). Let's say you're registering a post type for cars, you would register it like this:

    $cars = new Super_Custom_Post_Type( 'car', 'Car', 'Cars', array( 'supports' => array( 'title', 'author', 'thumbnail', 'excerpt', 'comments' ) );

    You can read more in the documentation.

    Happy coding!

  3. Khoryolis
    Posted 3 years ago #

    Great, I didn't tried to add the snippet there.
    Thanks a lot again for sharing your plugin, I save a lot of time with it.

    Have a nice day.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • SuperCPT
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic