if ( ! is_admin() || ! current_user_can( 'editor' ) ) {

olarak düzeltebilirsiniz.