WP Manifestindependent plugin directory
manifest / editor / wp-block-enable-toggle

Block Enable Toggle

Adds an "Enabled" toggle to all blocks. When disabled, the block is not rendered on the front end.

★ 0stars
v1.0.0latest · 4mo ago

Install

Download block-enable-toggle-1.0.0.zip From the v1.0.0 release on GitHub, Jun 15, 2026

Upload it under Plugins → Add New Plugin → Upload Plugin, then activate.

Install straight from GitHub with WP-CLI:

wp plugin install https://github.com/9ete/wp-block-enable-toggle/releases/download/v1.0.0/block-enable-toggle-1.0.0.zip
No built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.

Adds an Enabled toggle to every block in the WordPress block editor. When a block is disabled it stays in the editor — so you can keep it as a draft, a seasonal banner, or a work-in-progress — but it is never rendered on the front end.

How it works

  • A boolean betEnabled attribute is registered on every block type (default true).
  • A Visibility → Enabled toggle is added to the block inspector.
  • Disabling a block stores "betEnabled": false in the block delimiter comment. Because the value lives in the comment and not the saved HTML, block validation is never affected.
  • A server-side render_block filter removes disabled blocks from front-end output, so disabled content is never sent to the browser.

Disabled blocks are still rendered inside the editor (and its REST-driven previews) so you can see and re-enable them.

Requirements

  • WordPress 6.6+
  • PHP 7.4+

Development

The JavaScript build uses @wordpress/scripts:

npm install        # install build tooling (@wordpress/scripts)
npm run build      # compile src/ → build/
npm run start      # watch mode
npm run lint:js    # lint the editor source

PHP linting, unit tests, end-to-end tests, and Plugin Check run through a Composer-based gate (composer check) that is set up in the QA scaffold.

License

GPL-2.0-or-later. See the plugin header for details.

Releases

1 release. Each count is every asset in that release; expand a row for the breakdown.

Tag
Published
Assets
Downloads
v1.0.0 latest
Jun 15, 2026 4mo ago
block-enable-toggle-1.0.0.zip
0