Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

How can I remove the Rich Text box editor in wordpres. I have used remove_meta_box function and specifying the boxes ID but i does not work like it does for other core meta boxes:

The code i tried:

function remove_rich_box()
{
    remove_meta_box('postdivrich', 'client', 'normal');  
}
add_action( 'do_meta_boxes', 'remove_rich_box' );

Where the second paratmeter "client" is my custom post type

share|improve this question

1 Answer

Unfortunately, it's not possible to remove it like a metabox, since it isn't one.

However, there's a very easy way to get rid of it for a custom post type. If you don't define anything for the 'supports' argument in the registration function, your post type will default to

'supports' => array( 'title', 'editor' ),

To stop that, add this to your registration arguments array:

'supports' => array( 'title' ),
share|improve this answer
Thank you, that was exactly what I was looking for – Nenad Jul 2 '11 at 19:32

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.