PHPackages                             offsetwp/editor-support - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. offsetwp/editor-support

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

offsetwp/editor-support
=======================

Choose the type of editor (Gutenberg, Classic, or none) based on the post type, post ID, or template, and configure its various features.

1.0.2(5mo ago)01MITPHPPHP &gt;=8.1

Since Mar 26Pushed 5mo agoCompare

[ Source](https://github.com/offsetwp/editor-support)[ Packagist](https://packagist.org/packages/offsetwp/editor-support)[ Fund](https://www.buymeacoffee.com/w__jerome)[ Fund](https://ko-fi.com/w__jerome)[ RSS](/packages/offsetwp-editor-support/feed)WikiDiscussions main Synced 1mo ago

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

[![OffsetWP Editor Support](https://raw.githubusercontent.com/offsetwp/offsetwp.github.io/refs/heads/main/public/common/cover/cover-editor-support-light.png#gh-light-mode-only)](https://raw.githubusercontent.com/offsetwp/offsetwp.github.io/refs/heads/main/public/common/cover/cover-editor-support-light.png#gh-light-mode-only)[![OffsetWP Editor Support](https://raw.githubusercontent.com/offsetwp/offsetwp.github.io/refs/heads/main/public/common/cover/cover-editor-support-dark.png#gh-dark-mode-only)](https://raw.githubusercontent.com/offsetwp/offsetwp.github.io/refs/heads/main/public/common/cover/cover-editor-support-dark.png#gh-dark-mode-only)

 OffsetWP Editor Support
=========================

[](#----offsetwp-editor-support)

 Choose the type of editor (Gutenberg, Classic, or none) based on the post type, post ID, or template, and configure its various features.

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

[](#installation)

```
composer require offsetwp/editor-support
```

Usage
-----

[](#usage)

### Basic

[](#basic)

```
use OffsetWP\EditorSupport\EditorSupportManager;

$editor = EditorSupportManager::from_post_type( 'page' );
$editor
    ->set_classic_editor()
    ->remove_comments();
```

### API

[](#api)

#### Selector

[](#selector)

```
$editor = EditorSupportManager::from_post_type( 'page' ); // With post type
$editor = EditorSupportManager::from_post_id( 42 ); // With post ID
$editor = EditorSupportManager::from_template( 'template/contact.php' ); // With template name
```

### Primary editor type

[](#primary-editor-type)

```
$editor->set_gutenberg_editor(); // Gutenberg
$editor->set_classic_editor(); // Classic Editor
$editor->set_empty_editor(); // No editor
```

> ⚠ If you wish to disable Gutenberg entirely, we recommend using the [Classic Editor](https://fr.wordpress.org/plugins/classic-editor/) plugin.

### Add editor features

[](#add-editor-features)

```
$editor
    ->add_title()
    ->add_editor()
    ->add_author()
    ->add_thumbnail()
    ->add_excerpt()
    ->add_trackbacks()
    ->add_custom_fields()
    ->add_comments()
    ->add_revisions()
    ->add_page_attributes()
    ->add_post_formats();
```

### Add custom feature

[](#add-custom-feature)

```
$editor->add_support( 'my-custom-feature' );
```

### Add all features

[](#add-all-features)

```
$editor
    ->add_all() // Add all features
    ->add_all( 'content', 'thumbnail' ); // Add all features without specific ones
```

### Remove editor features

[](#remove-editor-features)

```
$editor
    ->remove_title()
    ->remove_editor()
    ->remove_author()
    ->remove_thumbnail()
    ->remove_excerpt()
    ->remove_trackbacks()
    ->remove_custom_fields()
    ->remove_comments()
    ->remove_revisions()
    ->remove_page_attributes()
    ->remove_post_formats();
```

### Remove custom feature

[](#remove-custom-feature)

```
$editor->remove_support( 'my-custom-feature' );
```

### Remove all features

[](#remove-all-features)

```
$editor
    ->remove_all() // Remove all features
    ->remove_all( 'content', 'thumbnail' ); // Remove all features without specific ones
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance73

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity48

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 ~133 days

Total

3

Last Release

152d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/f92310287db168bd8da8a7b15d26e9e0849a6c7ab9a30d7fc32497d7e5f4bab8?d=identicon)[w-jerome](/maintainers/w-jerome)

---

Top Contributors

[![w-jerome](https://avatars.githubusercontent.com/u/1685550?v=4)](https://github.com/w-jerome "w-jerome (13 commits)")

---

Tags

wordpresseditoroffsetwp

### Embed Badge

![Health badge](/badges/offsetwp-editor-support/health.svg)

```
[![Health](https://phpackages.com/badges/offsetwp-editor-support/health.svg)](https://phpackages.com/packages/offsetwp-editor-support)
```

###  Alternatives

[tgmpa/tgm-plugin-activation

TGM Plugin Activation is a PHP library that allows you to easily require or recommend plugins for your WordPress themes (and plugins).

1.8k222.5k13](/packages/tgmpa-tgm-plugin-activation)[aristath/kirki

Extending the WordPress customizer

1.3k73.0k4](/packages/aristath-kirki)[afragen/git-updater

A plugin to automatically update GitHub, Bitbucket, GitLab, or Gitea hosted plugins, themes, and language packs.

3.3k1.6k](/packages/afragen-git-updater)

PHPackages © 2026

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