Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter David Klhufek

    (@brtak)

    Found it, this code works fine..

    // Remove editor only if author
    function remove_editor() {
    if( current_user_can( 'author' ) ){
    remove_post_type_support('post','editor');
    } // only if author
    }
    add_action('admin_init','remove_editor');
    Thread Starter David Klhufek

    (@brtak)

    ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Remove editor only for author role’ is closed to new replies.