Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have some clients that are going to be using wordpress for their sites. I created custom fields for them to input data in so they don't have to use the editor. How do I hide the page editor completely? I want it completely hidden so they don't accidentally muck things up. Thanks!

share|improve this question
add comment

2 Answers 2

up vote 4 down vote accepted

For posts:

add_action('init', 'my_custom_init');
function my_custom_init() {
    remove_post_type_support( 'post', 'editor' );
}

See Codex. For custom post types that you register, you can specify what 'features' it supports when you register it it use the 'supports' arguments.

For custom post types that are not registered by you can use the above with 'post' replaced by the custom post type name.

share|improve this answer
    
Thanks Stephen! Worked perfectly!!! –  Tory Apr 12 '12 at 18:27
add comment

Here is an alternative, rather than removing the editors, they are simply hidden from use for anyone who is not an Administrator.

I prefer hiding, rather than removing. I'm sure there are cases for both.

//Hide New Post Options from all except Administrator
function hide_post_page_options() 
{
    if ( !current_user_can( 'administrator' ) )
        return;

    $hide_post_options = '<style type="text/css"> .postarea { display: none; }</style>';
    print($hide_post_options);
}
add_action( 'admin_head-post-new.php', 'hide_post_page_options'  );
share|improve this answer
add comment

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.