| 开发者 | motylanogha |
|---|---|
| 更新时间 | 2026年10月30日 19:22 |
| PHP版本: | 8.1 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
role="dialog" with aria-modal.[peek_quick_view id="123"], or the shorter [peek id="123"] alias. Optional attributes: text (custom label) and style (text, icon, or icon_text). The modal and its assets load automatically wherever the shortcode appears.
Peek is developed in the open. The code, open issues and release history live at GitHub, bug reports and patches are welcome there.
Works with other Plogins plugins
/wp-content/plugins/plogins-peek, or install via Plugins > Add New.Yes. Peek requires an active WooCommerce installation.
The plugin's own front-end script is vanilla JavaScript with no jQuery dependency. When a variable product is listed on the page, WooCommerce's bundled variation script (which itself uses jQuery) is loaded so the variation form works in the modal. Pages without a variable product do not load it.
On the shop page and product archive loops (categories, tags, taxonomies), after each product, and in block Product Collection grids on any page, such as a block theme homepage. It does not change single product pages.
Yes. Peek renders WooCommerce's native add-to-cart form inside the quick shop modal, including quantity and variable-product choices. The product is added without leaving the page: the modal confirms it with a View cart link and the mini-cart refreshes. If WooCommerce refuses the add (for example the product just sold out), its message is shown inside the modal. Grouped and external products keep their normal behaviour.
Yes. Variable products use WooCommerce's own variation form inside the product modal, so shoppers can choose a variation before adding to cart.
No. The modal is hidden until opened and overlays the page, so opening it never reflows existing content.
Yes. Use [peek_quick_view id="123"] or [peek id="123"] to add a product quick view trigger in custom layouts.
Yes, with no setting in Peek. Swift's Buy Now button works in the quick view and goes to checkout. With Swatch 1.0.24 or later, variable products in the quick view show Swatch's swatches instead of dropdowns.
Yes. This plugin is compatible with WordPress Multisite. Network activate it or activate it on individual sites; each site keeps its own settings and data.
[peek] shortcode as an alias for [peek_quick_view].[peek_quick_view] shortcode to place a quick-view trigger anywhere, with optional id, text and style attributes.uninstall.php removes the plugin's options on delete.