Title: StateSwitch
Author: masaribconnect
Published: <strong>2026 年 9 月 14 日</strong>
Last modified: 2026 年 9 月 14 日

---

搜索插件

![](https://ps.w.org/stateswitch/assets/banner-772x250.png?rev=3695812)

![](https://ps.w.org/stateswitch/assets/icon-256x256.png?rev=3695812)

# StateSwitch

 作者：[masaribconnect](https://profiles.wordpress.org/masaribconnect/)

[下载](https://downloads.wordpress.org/plugin/stateswitch.1.0.0.zip)

 * [详情](https://cn.wordpress.org/plugins/stateswitch/#description)
 * [评价](https://cn.wordpress.org/plugins/stateswitch/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/stateswitch/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/stateswitch/#developers)

 [支持](https://wordpress.org/support/plugin/stateswitch/)

## 描述

StateSwitch adds a simple two-state visual switch to compatible WooCommerce products.

Create an alternate product state and let visitors switch between the standard product
view and a second merchant-defined visual state directly on the storefront.

StateSwitch can be used for many kinds of visual comparisons, including:

 * Alternate product views
 * Before and after presentations
 * Open and closed states
 * Day and night views
 * Lighting changes
 * Different product configurations
 * Other two-state product presentations

StateSwitch is designed to work inside your existing WooCommerce store without sending
product or visitor data to an external service.

Features include:

 * Two merchant-defined visual states
 * Alternate product image support
 * Storefront state switch
 * Configurable StateSwitch settings
 * Optional visitor state memory
 * WooCommerce integration
 * No telemetry or analytics
 * No remote API dependency
 * No external fonts

StateSwitch requires WooCommerce.

### Privacy

StateSwitch processes settings and product metadata only inside WordPress. It does
not send data to external services.

When “Remember Visitor State” is enabled, StateSwitch stores the selected state (`
a` or `b`) in the visitor’s browser local storage. This contains no personal data
and is not transmitted to StateSwitch or any external service.

## 屏幕截图

[⌊StateSwitch global settings for configuring the default state, visitor state memory,
transition behaviour, and uninstall data preference.⌉⌊StateSwitch global settings
for configuring the default state, visitor state memory, transition behaviour, and
uninstall data preference.⌉[

StateSwitch global settings for configuring the default state, visitor state memory,
transition behaviour, and uninstall data preference.

[⌊StateSwitch toggle and placement settings, including custom State A and State 
B labels, toggle style, size, display mode, and automatic placement.⌉⌊StateSwitch
toggle and placement settings, including custom State A and State B labels, toggle
style, size, display mode, and automatic placement.⌉[

StateSwitch toggle and placement settings, including custom State A and State B 
labels, toggle style, size, display mode, and automatic placement.

[⌊StateSwitch integration in the WooCommerce product editor, where StateSwitch can
be enabled and an alternate State B image selected for an individual product.⌉⌊StateSwitch
integration in the WooCommerce product editor, where StateSwitch can be enabled 
and an alternate State B image selected for an individual product.⌉[

StateSwitch integration in the WooCommerce product editor, where StateSwitch can
be enabled and an alternate State B image selected for an individual product.

[⌊StateSwitch in action, demonstrating how customers can switch between two merchant-
defined product states on the storefront.⌉⌊StateSwitch in action, demonstrating 
how customers can switch between two merchant-defined product states on the storefront
.⌉[

StateSwitch in action, demonstrating how customers can switch between two merchant-
defined product states on the storefront.

## 区块

该插件提供了 1 个区块.

 *   StateSwitch Toggle

## 安装

 1. Upload and activate StateSwitch.
 2. Ensure WooCommerce is active.
 3. Open WooCommerce > StateSwitch to configure the plugin.
 4. Add an alternate State B image to compatible products.
 5. View the product on the storefront and use the StateSwitch control to switch between
    states.

## 常见问题

### Does StateSwitch require WooCommerce?

Yes. StateSwitch is designed specifically for WooCommerce products.

### Does it delete data on deactivation?

No. A separate opt-in setting controls removal only during uninstall.

### Does StateSwitch send product or visitor data to an external service?

No. StateSwitch stores its settings and product metadata inside WordPress and does
not use a remote StateSwitch API.

## 评价

此插件暂无评价。

## 贡献者及开发者

「StateSwitch」是开源软件。 以下人员对此插件做出了贡献。

贡献者

 *   [ masaribconnect ](https://profiles.wordpress.org/masaribconnect/)

[帮助将「StateSwitch」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/stateswitch)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/stateswitch/)，查看[SVN仓库](https://plugins.svn.wordpress.org/stateswitch/)，
或通过[RSS](https://plugins.trac.wordpress.org/log/stateswitch/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/stateswitch/)。

## 更新日志

#### 1.0.0

Initial public release.

## 额外信息

 *  版本 **1.0.0**
 *  最后更新：**3 天前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.1.1**
 *  PHP 版本 ** 7.4 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/stateswitch/)
 * 标签
 * [accessibility](https://cn.wordpress.org/plugins/tags/accessibility/)[product images](https://cn.wordpress.org/plugins/tags/product-images/)
   [woocommerce](https://cn.wordpress.org/plugins/tags/woocommerce/)
 *  [高级视图](https://cn.wordpress.org/plugins/stateswitch/advanced/)

## 评级

尚未提交反馈。

[您的评价](https://wordpress.org/support/plugin/stateswitch/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/stateswitch/reviews/)

## 贡献者

 *   [ masaribconnect ](https://profiles.wordpress.org/masaribconnect/)

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/stateswitch/)