Support » Plugin: SuperCPT » Removing standard content box

  • Resolved Khoryolis



    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 ?


Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Matthew Boynes


    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!

    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.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Removing standard content box’ is closed to new replies.