WP Manifestindependent plugin directory
manifest / editor / toggle-block

Toggle Block WP Registry grade A. No security issues foundWP RegistryNo security issues foundOpen the reportA

Add a toggle in the WordPress block editor to show and hide another block.

★ 1stars
37release downloads
≈10active sites
1.0.0latest · 4mo ago

Install

Download toggle-block.1.0.0.zip From the 1.0.0 release on GitHub, May 27, 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/happyprime/toggle-block/releases/download/1.0.0/toggle-block.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.

Add a toggle in the block editor to show and hide another block.

Description

Toggle Block is a very rudimentary block. It renders as a <button> element on the front-end that is used to show or hide another target element (via its ID) on the page. It uses aria-controls and aria-label in an attempt to make it compatible with assistive technology.

The intended use is in a site's template, through the site editor or your theme files, rather than as a block that is frequently used in content.

Changelog

1.0.0

  • Initial WP.org release.
  • Add block selection interface.
  • Add additional block supports: background image, background size, text align, shadow, and writing mode.
  • Update to latest dependencies, build process, and code standards.

0.6.0

  • Add toggle group support: when toggle blocks are inside a container with the toggle-block-group class, activating one toggle automatically closes others in the group.
  • Add a "Default toggle" option to mark which toggle should be active by default in a group.
  • Extend block supports to match paragraph and heading blocks: add font family, font style, font weight, letter spacing, text decoration, text transform, writing mode, border, and link color support.
  • Only render aria-label when screen reader text is provided, allowing the button text to serve as the accessible name by default.
  • Use aria-expanded instead of both aria-pressed and aria-expanded for toggle state.
  • Update to latest dependencies, build process, and code standards.

0.5.0

  • Wrap button text in a <span> element to help with styling.
  • Move editor styles to an editor-only stylesheet.
  • Update to latest dependencies, build process, and code standards.

0.4.0

  • Add an attribute to toggle a toggle block-specific class on the body element.
  • Allow the toggle block to be placed inside the core/navigation block.
  • Add transform support from/to core/navigation-link blocks.
  • Update to latest dependencies, build process, and code standards.

0.3.1

  • Add persisting toggle-block-has-been-toggled class to toggled element when first toggled.

0.3.0

  • Add persisting toggle-block-has-toggled class to toggle button when first clicked.
  • Update @wordpress/scripts to 27.7.0.
  • Update project dependencies.

Releases

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

Tag
Published
Assets
Downloads
1.0.0 latest
May 27, 2026 4mo ago
toggle-block.1.0.0.zip
3
Mar 10, 2026 7mo ago
toggle-block.0.6.0.zip
0
Jun 11, 2025 1 year ago
toggle-block.0.5.0.zip
2
May 1, 2025 1 year ago
toggle-block.0.4.0.zip
6
Oct 10, 2024 2 years ago
toggle-block.0.3.1.zip
8
May 9, 2024 2 years ago
toggle-block.0.3.0.zip
8
Feb 23, 2024 2 years ago
toggle-block.0.2.0.zip
4
Apr 19, 2023 3 years ago
toggle-block.0.1.0.zip
6

Active-site estimate ≈10 comes from the median of recent superseded releases. Method.

A grade

Security

Toggle Block 1.0.0 · audited by WP Registry

No security issues found.

Audited release
1.0.0
Findings
none
Worst severity
—
Content hash
25c479bc29e52d50627ad1fd…

WP Registry hashes the installable build and reports on that exact bytes-for-bytes copy. Embargoed findings are withheld until they are disclosed, so a clean verdict means nothing public is outstanding. WP Manifest does not audit code itself.