| 开发者 | jahirulwp |
|---|---|
| 更新时间 | 2026年10月30日 00:42 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
utm_campaign, optionally with a specific value.blocksieve_register_conditions action and the editor lists them automatically. Override any decision with the blocksieve_result filter, and tune the report's cache lifetime, scan limit and post types with filters. The docs/ folder documents every hook and filter, and the readable editor source ships in src/.
Privacy
BlockSieve runs entirely on your own server. It does not contact any external service, load files from a CDN, collect usage data or set cookies. It stores one option for its settings and one short-lived transient for the cached report, and removes both when you delete the plugin. Your visibility rules are saved inside the block content itself.
blocksieve folder to /wp-content/plugins/.Add a Logged In condition to the block. To limit it further, add a User Role condition and tick the roles that should see it.
Yes. Use Date Range for a one-off schedule, or Weekdays and Time Range for a recurring one, for example weekdays from 9:00 to 17:00.
Yes. Add a Device condition and keep only the devices the block should appear on. Mobile is narrower than 782 pixels, tablet is 782 to 1024 pixels, and desktop is wider. Because it uses CSS, it reacts when a window is resized.
WordPress can hide a block everywhere, and since version 7.0 it can hide a block on chosen screen sizes. BlockSieve adds conditions based on who is visiting, when they visit and which page they are on. You can use both on the same site.
Yes. Put them in a Group or any other container block and add the conditions to the container. When the container is hidden, everything inside it is hidden too.
Yes. The Visibility panel is added to every block type registered with the editor, including blocks from block library plugins and WooCommerce, and conditions are enforced wherever those blocks are used.
No. BlockSieve works with content built in the block editor. Classic Editor content, the Classic block and page builder layouts are not blocks and do not get the Visibility panel.
Yes. Conditions only apply on the front end, so every block stays visible in the editor.
No. It is a content display tool for tailoring what people see, not for protecting files or sensitive data. Use a membership or access-control plugin for those.
Conditions are checked when a page is built, so a page cache serves whatever version it stored first. Visitor-based conditions (Logged In, Logged Out, User Role, URL Contains, Query Parameter) and time-based conditions need a fresh page: bypass the cache for logged-in users and exclude pages that use the other conditions. The Device condition works with any cache because it uses CSS.
Nothing is lost. Conditions are stored inside your block content, every block shows while the plugin is inactive, and the conditions apply again when you reactivate it.
Yes. Activate it per site or network-wide. Each site keeps its own settings, and deleting the plugin cleans up every site.
valueSchema on blocksieve/v1/conditions is now an array schema; read its options from items.enum.