yuiami.jp Hidden Blocks

설명

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.

설치

  1. Upload the plugin files to the /wp-content/plugins/yuiamijp-hidden-blocks directory, or install the plugin through the WordPress plugins screen directly.
  2. Activate the plugin through the ‘Plugins’ screen in WordPress.
  3. Select any block in the editor and open the “Visibility schedule” panel in the sidebar.

FAQ

A block did not appear or disappear at the scheduled time

If you use a page cache (a caching plugin, a host-level cache, or a CDN), visitors keep getting the cached copy until it expires. A block can stay visible after its end time, and stay missing after its start time.

Shorten the cache lifetime, or purge the cache at the scheduled time. A cache often sits outside WordPress, so this plugin cannot clear it for you.

Can I rely on this to take something down at an exact time?

No. Read the schedule as “around then”, not “at that second”. On a cached site the change lands whenever the cache expires, which can be hours later.

Don’t use it for anything that has to be gone on time: a price, a discount that has ended, a legal notice, terms of sale, or any deadline you are accountable for. Edit or unpublish that content instead.

Does hiding a block delete its content?

No. The content stays in the editor. Only the front-end output is suppressed while the block is outside its schedule.

Can hidden content still show up in WordPress’s site search?

Yes. A hidden block’s text is still stored as part of the post, and WordPress’s built-in site search matches against that stored content. So the post itself can still appear in site search results because of words inside a currently hidden block, even though the block’s output stays suppressed on the page. Don’t rely on this plugin to hide sensitive information.

Which timezone is used?

The site timezone from Settings General.

후기

이 플러그인에 대한 평가가 없습니다.

기여자 & 개발자

“yuiami.jp Hidden Blocks”(은)는 오픈 소스 소프트웨어입니다. 다음의 사람들이 이 플러그인에 기여하였습니다.

기여자

“yuiami.jp Hidden Blocks”(이)가 1 개 언어로 번역되었습니다. 기여해 주셔서 번역자님께 감사드립니다.

자국어로 “yuiami.jp Hidden Blocks”(을)를 번역하세요.

개발에 관심이 있으십니까?

코드 탐색하기는, SVN 저장소를 확인하시거나, 개발 기록을 RSS로 구독하세요.

변경이력

1.0.1

  • Hidden blocks are no longer dimmed while you edit them (when the block or a block inside it is selected). The grey outline and hidden icon stay, so you can still tell the block is hidden.

1.0.0

  • Initial release.