WooCommerce 的简单插件,可用于为您的产品启用密码保护,例如每个产品的通用或单独,当然,如果启用了密码请求。
因此,如果管理员为某些产品启用了密码保护 – 将建议用户输入产品密码进行购买。
主要特点:
- 通过管理面板实现舒适的可用性
- 为您的产品启用/禁用密码保护(每个产品的常规或单独)
- 跨浏览器兼容性
- 无需编码
高级选项:
要更改样式,您可以使用以下 css 类:
.product-protector-label – for label styles on single product page .product-protector-password – for password input styles on single product page
可供开发人员使用的筛选器:
"product_protector_password_label" – for changing default text message on single product page "product_protector_hidden_price_text" – for changing default "Price is hidden" text
密码优先级的工作原理:
- 个人密码 (!!)
- 类别密码 (!!)
- 全局密码 (!)
提示:“!!”最高优先级
“!” 最低优先级
v 1.6.3 - 30/01/2024 - Compatibility fixes - WooCommerce 8.* support added v 1.6.2 - 06/05/2021 - Compatibility fixes v 1.6.1 - 05/05/2020 - Compatibility fixes v 1.6 - 15/03/2019 - WordPress 5.1 compatibility - WooCommerce 3.5.* compatibility - FR, DE localization fixes - plugin speed optimization v 1.5.1 - 14/12/2017 - WooCommerce 3.2.* compatibility - fixed bug when product was in two or more protected categories - disabled password protection for products which are already in cart - FR, DE localizations added Available filters for developers: - woo_prod_protect_label (for changing default label "Product password (required)") - woo_prod_protect_hidden_price_text (for changing default "Price is hidden" text) v 1.4.1 - 09/10/2016 - settings bug fixed v 1.4 - 01/10/2015 - "hide product price" functionality added v 1.3 - 22/02/2015 - fixed bugs related with woocommerce 2.3.* version - fixed problem user doesnt set any product password v 1.2.1 - 26/01/2015 - category password fix (works hierarchically) v 1.2 - 30/12/2014 - Added "Set Password by Category" functionality v 1.1 - 18/06/2014 - Fixed missing "Enable protection" checkbox (conflict with some themes) - Added css classes: "product-protector-label" for label and "product-protector-input" for input v 1.0 - 08/04/2014 - First stable release