Linux 软件免费装

GateForge

开发者 ravenx25
更新时间 2026年11月22日 07:47
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

widgets blocks conditional widget logic visibility

下载

1.1.2

详情介绍:

https://www.youtube.com/watch?v=iQEJhkZ9Cj0 GateForge lets you decide where a widget or a block appears: on the front page, on one category, for logged-in visitors only, between two dates, and so on. Rules are built with a point-and-click builder and stored as data. GateForge never runs code taken from the database. If you used Widget Logic, GateForge reads your old rules, translates what it can into GateForge rules, and shows you a report that lists every rule with its original text. Nothing is dropped silently. What it does An optional paid add-on adds a nested editor, a group library editor and recurring schedules. See the GateForge product page for the full details. How unsure rules are handled If GateForge cannot decide a rule, the item is hidden. Imported rules that depend on who the visitor is (logins, users, roles, memberships) stay hidden until you rebuild them. Rules that only depend on the page can be switched to "show" one widget at a time in the import report. Reusable condition groups A group is a set of conditions stored by GateForge and reused by many rules. A rule refers to a group by id; the group resolves at evaluation time, so editing the group changes every rule that uses it at once, with no rule re-save. A rule that refers to a missing or deleted group fails closed (hidden). A group that refers to itself, directly or through other groups, also fails closed. Groups are counted against the same size and depth limits as inline rules, once expanded. Visibility is not security Hiding a widget or block only stops it from being displayed. The content is not protected: it may still be reachable through feeds, the REST API, search, caches, other plugins or the page source. Do not use GateForge to protect private information. If GateForge is turned off If you deactivate or delete GateForge, every rule stops working and every widget and block it was hiding is shown again. This is the one case where GateForge fails open. The rules stay stored and work again when you reactivate it. Page caches A page cache stores one copy of a page for everyone. Rules that depend on the visitor or the device (logged in, capability, mobile, cart cookies) and date schedules can show a cached copy to the wrong visitor. Exclude such pages from the cache or skip those rules. GateForge asks common cache plugins to purge when a schedule boundary passes.

安装:

  1. Install and activate GateForge from the Plugins screen.
  2. If Widget Logic is active, deactivate it first. The importer stays disabled while it is active.
  3. Go to Tools, GateForge Import, run the scan and read the report before you apply it.
  4. Add rules to blocks from the Visibility rule panel, or to classic widgets from the Edit rule button.

屏幕截图:

  • Rules on classic widgets — the Legacy Widget panel in the block widgets editor
  • Explain mode — why a widget is shown or hidden, with the logged-out visitor view
  • Tools → Diagnostics — every rule on the site, checked and listed
  • The Widget Logic importer — scan report with unmatched rules preserved in full

升级注意事项:

1.1.2 Maintenance release: WordPress.org review fixes (enqueued styles, explicit output-buffer close, bounded rule-tree walk, dismissible notices). No behaviour or data changes. 1.1.0 Adds reusable condition groups and rule references. Existing rules evaluate identically; stored rule data is unchanged. 1.0.0 First release.

常见问题:

Does GateForge run my old Widget Logic code?

No. Old rules are read as text and translated. Anything GateForge cannot translate is listed in the report and the item is hidden until you decide.

Can I hide a block only for logged-out visitors?

Yes. Add a rule with the "Visitor is logged in" condition and switch it to Hide. Remember that hidden is not protected.

Does GateForge add scripts to my front end?

No. Visitors get no extra CSS or JavaScript. The builder only loads in the editors and on GateForge screens.

Does GateForge contact any server?

No. The free plugin makes no outbound requests and collects no data.

更新日志:

1.1.2 1.1.0 1.0.0