跳到内容

yuiami.jp Hidden Blocks

v1.0.1

Takashi Fujisaki · 2026年10月1日 上架

Show or hide any block on a schedule. No settings screen — just two fields on every block.

正在使用
10 以下
评分
暂无
累计下载
371
最近更新
2026年10月10日
需要 WordPress 6.6+已测试到 7.1.5PHP 7.4+

yuiami.jp Hidden Blocks adds a simple visibility schedule to every block. Pick a start date, an end date, or both, and the block is shown only inside that window. Outside the window, the block’s HTML is not rendered at all.

Built to stay simple:

  • No settings screen. Install it and every block gets a “Visibility schedule” panel.
  • Two fields per block: “Show from” and “Show until”. That’s it.
  • Works with every block — core, third-party, and nested blocks.
  • Output is removed server-side, so hidden content never leaks into HTML, feeds, or search engines.
  • Scheduled blocks are marked in the editor with a dashed outline and a clock icon. Blocks that are currently hidden on the front end are dimmed instead, with a grey outline and a hidden icon.
  • A button in the block toolbar opens the schedule, so it is always one click away.
  • Times follow your site’s timezone setting.
  • No settings, no database tables. Nothing is left behind on uninstall.

Development

The editor script in build/ is compiled from the sources in src/, which ship with this plugin. Building it yourself needs Node.js and pnpm:

pnpm install
pnpm build

The build runs @wordpress/scripts and writes build/index.js, build/index.css, build/index-rtl.css and build/index.asset.php. The plugin reads its script dependencies and version from build/index.asset.php, so the editor only picks up a change after a build.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums