Is it possible to remove the content editor (RTF field) for a certain user / role?

by Mark Bowen   Last Updated May 04, 2018 12:08 PM

As per the title really, I'm wondering if there's a way to hide the main content editor for posts and pages from certain users / roles but let everyone else see it?

I believe you can hide it completely using this code

function remove_pages_editor(){
    remove_post_type_support( 'page', 'editor' );
add_action( 'init', 'remove_pages_editor' );

but I wouldn't have the first idea of how to adapt that so that it only affect certain users / user roles?

Any help would be greatly appreciated.


Tags : content editor

Related Questions

Is there a way to show only the text editor

Updated June 23, 2016 08:03 AM

Stripping <p> tag from elements in post

Updated August 24, 2015 18:03 PM