Linux 软件免费装
Banner图

Visigate – Conditional Content & Visibility Rules

开发者 jaypeeperos
更新时间 2026年11月13日 12:31
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

elementor block editor personalization visibility conditional content

下载

1.5.3 1.3.3 1.3.5 1.3.4 1.3.1 1.3.2 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2

详情介绍:

Visigate lets you decide who sees which content on your WordPress site, and when. Build a rule once, then apply it to any block, any Elementor element, or any content wrapped in a shortcode. Rules run on your server before the page is sent. Hidden blocks are never rendered, so their content isn't sitting in the page source, and Visigate loads no CSS or JavaScript on the front end. https://www.youtube.com/watch?v=SIE5wlU_Eg0 What you can do with it Key features Included conditions Documentation For step-by-step guides with screenshots, see the Visigate documentation. It covers rule sets, every condition, the block editor, Elementor, shortcodes, caching and troubleshooting. Shortcode Use a saved rule set. Its ID appears in the Shortcode column under Visigate → Rule Sets: [visigate set="12"]Content goes here[/visigate] Or set the conditions directly. All of them must match: [visigate logged_in="yes" roles="customer" device="mobile"]Content goes here[/visigate] Attributes: For developers Check a rule set in a theme template: if ( visigate_visible( 12 ) ) { // Show your content. } PHP filters: visigate_conditions, visigate_check_condition, visigate_condition_options, visigate_condition_groups, visigate_rest_search, visigate_device, visigate_missing_set_visible, visigate_is_pro, visigate_upgrade_url, visigate_hidden_block_output, visigate_hidden_shortcode_output, visigate_brand_name, visigate_base_capability, visigate_user_can_manage, visigate_js_data, visigate_usage_index, visigate_usage_describe, visigate_rules_subject, visigate_loop_template_blocks, visigate_page_types, visigate_target_exists, visigate_cache_detect. JavaScript filters: visigate.builder.extras, visigate.builder.warnings, visigate.panel.extras. Visigate Pro Visigate is fully usable on its own. Visigate Pro is an optional paid add-on that adds more conditions, including country, ACF/post-meta, user meta and advanced WooCommerce rules, plus fallback content and agency tools. URL parameter, cookie and referrer rules are included in the free plugin.

安装:

  1. In your WordPress admin, go to Plugins → Add New and search for "Visigate".
  2. Click Install Now, then Activate.
  3. Go to Visigate → Add Rule Set and create your first rule.
  4. Apply it from a block's Visibility Rules panel, from Elementor → Advanced → Visigate, or with the [visigate] shortcode.

屏幕截图:

  • The Visibility Rules panel in the block editor, combining a saved rule set with custom rules for one block.
  • The Pattern Visibility sidebar sets rules on a synced or unsynced pattern placement without editing the pattern.
  • The "Open Visigate" shortcut in Page settings opens the Pattern Visibility sidebar.
  • Custom rules with AND/OR groups on a classic Elementor element, styled to match Elementor's dark theme.
  • Visibility rules on an Elementor atomic Flexbox, alongside a saved rule set.
  • The Rule Sets list, showing each rule's summary, where it is used and its shortcode, with Where used and Duplicate actions.
  • Cache safety, admin preview, View as and developer reference on the settings screen.
  • The Usage screen lists every pattern, page, navigation menu and menu item that uses a rule set.
  • View as in the admin bar: preview a page as a logged-out visitor, with hidden content revealed and outlined.
  • A menu item with a Visigate rule set, so "Log in" shows only to logged-out visitors.

升级注意事项:

1.5.3 Adds a rule inspector, rule warnings, page type and URL path conditions, and a Cache Check screen. Update Visigate before updating Visigate Pro 1.5.3. 1.5.2 Adds an Always hide switch to the rule builder and fixes backslashes being removed from rule set values. Update Visigate before updating Visigate Pro 1.5.2. 1.5.1 Adds free category and tag visibility rules, including child categories. Update Visigate before updating Visigate Pro 1.5.1. 1.4.2 Shows WordPress's built-in block hiding alongside Visigate rules in the block editor, and restores the editor badges for blocks with rules. 1.4.1 Fixes hidden Group and Columns text showing in automatic excerpts, and hidden content showing in content loaded through admin-ajax.php or public REST requests. Recommended for all sites. 1.4.0 Adds a report of where each rule set is used, rule sets for classic menu items, and a View as menu for previewing pages as other visitors. Update before Visigate Pro 1.4.0. 1.3.5 Adds custom rules and atomic element support in Elementor, with cache handling for visitor-specific visibility. Removes visibility controls from Post Settings. 1.3.4 Adds individual page and post targeting and lets you duplicate saved rule sets as drafts. 1.3.3 Adds server-side visibility rules for specific users, post types, and singular or archive views. 1.3.2 Fixes missing Elementor visibility controls on containers and widgets with different Advanced section names. Existing rule selections are preserved.

常见问题:

Can I set visibility on a pattern without editing it?

Yes. Open the Page/Post settings sidebar, expand Visigate and click "Open Visigate". You can also open Pattern Visibility from the editor's Plugins menu (or its eye icon when pinned). Select a synced or inserted unsynced pattern on the page, or choose it from the Pattern placement list. Pick a saved rule set or add custom rules. The rules are saved on that placement, so two uses of the same synced pattern can have different visibility. Rules on blocks inside the original pattern continue to apply as well. This sidebar also works when WordPress uses content-only pattern editing and hides the usual block settings. You can configure the placement without entering Edit pattern. Pro fallback controls are available in the same panel according to your plan.

Does this plugin require Elementor or WooCommerce?

No. Visigate works with the block editor on its own, and its Elementor support turns on when Elementor is active. WooCommerce conditions are part of Visigate Pro.

Does it work with other page builders?

Yes, through the [visigate] shortcode or the visigate_visible() PHP helper. Any builder or theme that can output a shortcode or run PHP can use them.

Where are the Elementor visibility controls?

Select a widget, section, column or container, then open Advanced → Visigate: Visibility and choose a saved rule set or use "Custom rules for this element". The custom rule builder supports the same conditions, AND/OR groups and show/hide actions as the block editor. If you configure both a saved set and custom rules, both must allow the element to show. Flexbox and Grid containers are supported. A rule on a container controls the whole container and its contents. Elements remain visible while editing in Elementor. Atomic elements use their own Visigate: Visibility section in the atomic settings panel. Saved sets and custom rules work on atomic widgets and layouts, including Flexbox, Grid and Div Block. Requires an Elementor version with the atomic controls and props-schema APIs; classic Elementor support remains available on older versions.

Will it slow down my site?

Visigate loads no CSS or JavaScript on the front end. Rules are checked on the server while the page is being built.

Does it work with caching?

For specific user, device, and time rules, Visigate can flag the page with DONOTCACHEPAGE, which is on by default and can be changed under Visigate settings. Most page cache plugins respect this flag, but some server or CDN caches may not, so you may need to exclude those pages there. Login and role rules usually need no exclusion, because most page caches are bypassed for logged-in users.

Which time zone do time rules use?

Day, time and date rules use the time zone set under Settings → General.

How is the device detected?

Visigate uses the browser's user agent on the server, so it detects the device type rather than the screen width. Developers can adjust the result with the visigate_device filter.

How do I target individual users?

Add Specific users and search by display name or username. Is any of matches the selected accounts. Is none of also matches logged-out visitors. Add a Logged in condition in the same group to limit it to signed-in accounts.

What do the page location rules match?

Categories / tags is included in Free. Search built-in WordPress categories and tags by name and select one or more. Selecting a parent category also matches its child categories. On a single page/post it checks assigned terms; on a category or tag archive it checks the archive term. Neither operator matches on other views, such as search results or custom-taxonomy archives. Rules use the page being visited, not an item inside a Query Loop. Custom taxonomies, including WooCommerce product categories and tags, require Pro. Specific Page or Post searches published content by title, including public-facing custom post types. Use is any of to match selected entries or is none of to match other singular entries. Both operators check the page being visited. Archive pages and the blog posts index do not match this condition. Post type checks the current page's single item or dedicated post type archive. It supports public-facing custom post types. Page view matches either a single item or a WordPress archive, including category, tag, author, and date archives. Search results and the blog posts index are separate views. These rules check the page being visited, regardless of which item a Query Loop block is displaying.

How can I test a rule?

While logged in as an administrator, open View as in the admin bar on any front-end page and pick a logged-out visitor, a role or a device. The page reloads as that visitor would see it, while you stay logged in. Choose Stop viewing as to go back. More options… opens the full View As screen. You can also use the Visigate toggle in the admin bar to reveal hidden content, faded and outlined in red. The two work together: reveal hidden content while viewing as a visitor to see exactly what they miss. Only you see these previews.

Can I show or hide menu items?

Yes. In Appearance → Menus, open a menu item and choose a saved rule set or "Custom conditions" under "Visigate: visibility". Custom conditions use the same visual builder, including Show/Hide actions and AND/OR groups. When visibility rules hide the item, its sub-items are hidden too. In block themes, select a link inside a Navigation block and use its Visibility Rules panel.

How do I see where a rule set is used?

The Rule Sets list has a Used in column, and Visigate → Usage lists every rule set. Open one to see each page, post, pattern, template, template part, navigation menu, menu item, widget and Elementor element that uses it. When you trash a rule set that is in use, Visigate asks you to confirm first, because content that uses a missing rule set is hidden. Rule sets used only from PHP, with visigate_visible(), cannot be detected.

What happens when I delete the plugin?

Visigate removes its settings but keeps your rule sets, so reinstalling won't break your pages. Blocks and shortcodes stop being filtered while it's inactive, so check any sensitive content before you deactivate it.

Is there a premium version?

Yes. Visigate Pro is a separate plugin sold outside WordPress.org. This plugin doesn't require it.

更新日志:

1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.5 1.3.4 1.3.3 1.3.2 1.3.1 Fix: admin preview now also reveals content hidden by the [visigate] shortcode (faded and outlined in red), not only blocks. Plugin and author links now point to persjay.com, and Pro conditions in the builder link to the Visigate Pro plans. 1.3.0 Fix: elements with a rule set are no longer stored in Elementor's element cache, so every visitor gets the right version. Add-ons can now lock individual conditions to a plan. 1.2.0 New visigate_manage capability (granted to administrators) and developer hooks for replacement content, renaming and builder extensions. 1.1.1 Directory-ready readme and plugin headers (free features only). Upgrade URL is empty until a real pricing page exists. 1.1.0 Pro conditions moved to the separate Visigate Pro add-on; unknown conditions now fail closed and are preserved on save. 1.0.0 Initial release.