| 开发者 | livostory |
|---|---|
| 更新时间 | 2026年10月20日 20:26 |
| PHP版本: | 8.2 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 |
| 版权网址: | 版权信息 |
[livostory-stories] shortcode anywhere on your site: a row of stories appears, each one linked to a product. Click a story to open it full-screen, with a buy button right inside, ready to add that product to the cart.
Three ways to show your stories
livostory_extra_cart_fields filter lets a theme or another plugin add store-specific fields (an activation date, for example) to the add-to-cart card, with no changes to Livo Story's own code./wp-content/plugins/livo-story, or install it directly through the WordPress plugins screen.[livostory-stories] shortcode to any page or post to display the stories slider.Yes. When a story's product has variations, the add-to-cart card expands to let the shopper pick the attributes before adding it to the cart.
Yes, via the livostory_extra_cart_fields filter. It receives the current field list, the WC_Product, and the story, and expects an array of field definitions (name, type, label, required, and options for a select field). Livo Story ships with no fields registered by default.
limit: zero, negative, absent or absurdly large values are all clamped to a fixed range instead of loading every active story or scanning every product in a category.ids shortcode attribute: [livostory-stories ids="7,3,12"] embeds just those stories, in exactly that order. Pages can now show different, hand-picked sets, and set their own order without touching the global one.navigator.clipboard, which browsers only expose in a secure context, and failed outright everywhere else..wrap class themselves (e.g. centering on the "Add Story" screen) — the previous ancestor-based scoping never matched same-element cases.coffee-wc-checkout) instead of livo-story, which affected the built asset public path and the release zip's folder/file name.readme.txt and the real composer.json (previously a generic placeholder without the actual dependencies).yarn release now runs composer install --no-dev itself, so it alone produces a submission-ready package.languages/livo-story-pt_BR.mo) so existing installs keep the same UI language.livo-story throughout.readme.txt.livostory_extra_cart_fields filter so store-specific add-to-cart fields don't need to be hardcoded in the plugin.