[WordPress] 外掛分享: Yangra Conditional

首頁 › 外掛目錄 › Yangra Conditional
WordPress 外掛 Yangra Conditional 的封面圖片
全新外掛
安裝啟用
—
尚無評分
8 天前
最後更新
—
問題解決
WordPress 6.5+ PHP 7.4+ v1.0.0 上架:2026-11-13

外掛標籤

開發者團隊

⬇ 下載最新版 (v1.0.0) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「Yangra Conditional」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

Yangra Conditional helps you display and hide content on your site depending on conditions you choose.
Menu item visibility. Show or hide any menu item for chosen visitors, in classic menus (Appearance → Menus) and in the Navigation block. Hide “Log in” from logged-in users, show a link only to Editors, hide a menu item on mobile. Hiding an item hides its sub-items too.
Block and widget visibility. Every block, from WordPress or other plugins, gets a Visibility panel. Classic widgets get the same rules in their settings.
Scheduled elements. Show or hide parts of your pages at set times: any block, from its Visibility panel, or any element with a class or ID, from any theme or page builder. The switch happens in the visitor’s browser, so it works with page caching.
Scheduled content. Write content in the block editor and schedule when it appears on chosen pages and posts: above their content, below it, or in place of it. Supported page caches are purged at each show and hide time.
Conditional shortcode. For the classic editor, page builders and text widgets: [yangra_conditional role="editor"]…[yangra_conditional_else]…[/yangra_conditional] shows its content only to matching visitors. Build it with Yangra Conditional → Shortcode builder.
Conditions: user state (logged in or out), user role, page type, archive page and visitor device. Combine them, choose Show or Hide, and use “is” or “is not”.

Rules are checked on the server: hidden items are never sent to the browser.
“Preview as” in the admin bar shows your site as a logged-out visitor, another role or a mobile device.
A Dashboard shows every rule and schedule on your site, with links to where they are set.
“Copy rule” and “Paste rule” reuse a rule on other menu items, blocks and widgets, across all the editors.

Yangra Conditional Pro
Pro adds more conditions and tools to the same editors. Learn more at https://yangrasoft.com/yangra-conditional.

Condition groups (OR): a rule matches when any one of its groups of conditions matches, e.g. “the user is an Editor” or “the visitor is on mobile”.
Visitor location: show or hide content by the visitor’s country, e.g. a “Free shipping to the UK” notice. Countries are looked up on your own server, with no external service.
Visitor language: match the visitor’s language, from Polylang or from the visitor’s browser.
User groups: make your own lists of users, such as “Staff” or “Wholesale customers”, and use them in rules.
Saved rules: build a rule once and use it in any number of conditional shortcodes; change it in one place.
Countdown: a block and shortcode that count down to a scheduled element’s show or hide time.
Preview at a date and time: “Preview as” shows your site as it will look at a chosen moment, with its schedules, countdowns and scheduled content.
More for scheduled content: visitor conditions on each item, a history of its cache purges, and a panel on each page that lists the items shown on it.

Third-party services
This plugin uses the Freemius SDK to handle optional usage tracking (only after you opt in), licensing and upgrades to the Pro version. No data is sent to Freemius unless you opt in or purchase a license.

Freemius Terms of Service: https://freemius.com/terms/
Freemius Privacy Policy: https://freemius.com/privacy/

Source code
The minified JavaScript and CSS in build/ are compiled from the human-readable source in assets/src/, which ships with the plugin, using @wordpress/scripts (npm run build).
The plugin includes the Freemius WordPress SDK (version 2.13.5, GPLv3) in vendor/freemius/wordpress-sdk/, which handles opt-in diagnostics and Pro licensing. Its source is available in that repository.

延伸相關外掛

文章
Filter
Mastodon