PHPackages                             dartmoon/wordpress-disable-editor - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. dartmoon/wordpress-disable-editor

ActiveWordpress-muplugin

dartmoon/wordpress-disable-editor
=================================

Disable editor for specific templates, pages, posts, etc.

v1.1.4(2y ago)0207MITPHP

Since May 19Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dartmoon-io/wordpress-disable-editor)[ Packagist](https://packagist.org/packages/dartmoon/wordpress-disable-editor)[ RSS](/packages/dartmoon-wordpress-disable-editor/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (4)Dependencies (1)Versions (5)Used By (0)

WordPress Disable Editor
========================

[](#wordpress-disable-editor)

This plugin allows you to disable the editor for some CPTs, templates or specific pages.

Installation
------------

[](#installation)

### If you use a Roots Bedrock or a composer-based WordPress installation

[](#if-you-use-a-roots-bedrock-or-a-composer-based-wordpress-installation)

```
composer require dartmoon/wordpress-disable-editor
```

If you use a normal WordPress installation
------------------------------------------

[](#if-you-use-a-normal-wordpress-installation)

1. Download and install a MU plugin loader that lets you use MU plugins that reside inside folders. For example you could use [Bedrock Autoloader](https://github.com/roots/bedrock-autoloader).
2. [Download the latest release](https://github.com/dartmoon-io/wordpress-disable-editor/releases) of this plugin and extract it inside the mu-plugins folder of your WordPress installation.

Usage
-----

[](#usage)

### Disable Gutenberg

[](#disable-gutenberg)

```
add_filter('drtn/disable_gutenberg', function ($can_edit, $post_id, $post_type) {
    /**
     * Post types for which to enable Gutenberg
     */
    if ($post_type == 'post') {
        return true;
    }

    /**
     * Templates for which we need to disable Gutemberg
     */
    $excludedTemplates = [
        //
    ];

    /**
     * Specific Post IDs for which we need to disable Gutenberg
     */
    $excludedIds = [
        //
    ];

    // Retrieve the template of the current post id
    $template = basename(get_page_template());
    return !(in_array($post_id, $excludedIds) || in_array($template, $excludedTemplates));
}, 10, 3);
```

### Disable classic editor

[](#disable-classic-editor)

```
add_filter('drtn/disable_editor', function ($can_edit, $post_id, $post_type) {
    /**
     * Post types for which to enable the classic editor
     */
    if ($post_type == 'post') {
        return true;
    }

    /**
     * Templates for which we need to disable the classic editor
     */
    $excludedTemplates = [
        //
    ];

    /**
     * Specific Post IDs for which we need to disable the classic editor
     */
    $excludedIds = [
        //
    ];

    // Retrieve the template of the current post id
    $template = basename(get_page_template());
    return !(in_array($post_id, $excludedIds) || in_array($template, $excludedTemplates));
}, 10, 3);
```

License
-------

[](#license)

This project is licensed under the MIT License - see the LICENSE.md file for details

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~30 days

Total

4

Last Release

1003d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2efeef5805499c8446aee9d5cbb924e27978d6efceff1cb0d4865ffd2e937d86?d=identicon)[alessandro1105](/maintainers/alessandro1105)

---

Top Contributors

[![alessandro1105](https://avatars.githubusercontent.com/u/4523050?v=4)](https://github.com/alessandro1105 "alessandro1105 (11 commits)")

---

Tags

wordpresswordpress-plugin

### Embed Badge

![Health badge](/badges/dartmoon-wordpress-disable-editor/health.svg)

```
[![Health](https://phpackages.com/badges/dartmoon-wordpress-disable-editor/health.svg)](https://phpackages.com/packages/dartmoon-wordpress-disable-editor)
```

###  Alternatives

[elgg/elgg

Elgg is an award-winning social networking engine, delivering the building blocks that enable businesses, schools, universities and associations to create their own fully-featured social networks and applications.

1.7k15.7k5](/packages/elgg-elgg)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[johnbillion/user-switching

Instant switching between user accounts in WordPress and WooCommerce.

19768.3k2](/packages/johnbillion-user-switching)[rainlab/blog-plugin

Blog plugin for October CMS

17257.7k](/packages/rainlab-blog-plugin)[rainlab/user-plugin

User plugin for October CMS

11954.3k13](/packages/rainlab-user-plugin)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
